Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update golang.org/x/net to resolve govulncheck #2381

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

nathanlaceyraft
Copy link
Contributor

resolve govulncheck CVE's

within d2 top folder run
govulncheck ./...

Vulnerability #4: GO-2024-3333
Non-linear parsing of case-insensitive content in golang.org/x/net/html
More info: https://pkg.go.dev/vuln/GO-2024-3333
Module: golang.org/x/net
Found in: golang.org/x/net@v0.29.0
Fixed in: golang.org/x/net@v0.33.0
Example traces found:
#1: lib/textmeasure/markdown.go:112:43: textmeasure.MeasureMarkdown calls goquery.NewDocumentFromReader, which calls html.Parse

shows this repo using vulnerable dependencies.

go get golang.org/x/net
go mod tidy

--- I'm not sure what golang version you are building with.
But building with 1.23.4 showed extra CVE's
I had to update to 1.23.6 to resolve them.

--- FYI github can automatically open PR's like this for you.
by enabling dependabot within the security tab
code security

image

Thanks for a great repo!

@nathanlaceyraft
Copy link
Contributor Author

Signed, thanks for the help!

@alixander alixander merged commit 9ce6595 into terrastruct:master Feb 26, 2025
3 checks passed
@nathanlaceyraft nathanlaceyraft deleted the resolve-govulncheck branch February 26, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants