chore(deps): bump golang.org/x/mod to v0.40.0 (fix Trivy HIGH CVEs) - #468
Merged
Conversation
golang.org/x/mod v0.37.0 (pulled in transitively via hashicorp/hcl -> golang.org/x/tools/cmd/stringer) has two fixable HIGH vulnerabilities that wedge the Trivy fixable-CRITICAL/HIGH gate on every open PR: - CVE-2026-56864: malicious GOSUMDB could serve arbitrary module content - CVE-2026-56865: malicious GOPROXY could forge sumdb entries Both are fixed in v0.40.0. `go mod tidy` also advanced the related x/net, x/text, and x/tools indirect deps. Verified locally with trivy 0.70.0 (matching CI): fs scan with --severity CRITICAL,HIGH --ignore-unfixed now reports 0 vulnerabilities and exits 0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
LGTM 🎉 — a clean indirect-dependency bump (golang.org/x/mod 0.37.0→0.40.0 closing the two fixable HIGH CVEs, with x/net/x/text/x/tools advanced by go mod tidy); I verified go build ./..., go mod verify, and a fresh go mod tidy all pass with no further changes, and test/integration carries no x/mod, @anisaoshafi.
Automated review on behalf of @gtsiolis.
Generated by Claude Code
anisaoshafi
enabled auto-merge (squash)
August 21, 2026 13:30
anisaoshafi
disabled auto-merge
August 21, 2026 13:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Bumps the indirect dependency
golang.org/x/modfromv0.37.0tov0.40.0, which resolves two fixable HIGH CVEs that are currently failing the Trivyfixable CRITICAL/HIGHgate on every open PR (the vuln lives inmain'sgo.mod):GOSUMDBcould serve arbitrary module contentGOPROXYcould forge sumdb entriesgolang.org/x/modis pulled in transitively (internal/iac/terraform/cli→hashicorp/hcl/v2→golang.org/x/tools/cmd/stringer→golang.org/x/mod/modfile).go mod tidyalso advanced the relatedx/net,x/text, andx/toolsindirect deps.This unblocks the CI (failed PR checks).
Verification
Reproduced and verified locally with Trivy
0.70.0(matching CI) using the exact gate flags:go.mod→ 2 HIGH, exit code1(gate fails)go.modtargets →0vulnerabilities, exit code0(gate passes)go build ./...passesResolves DEVX-1063
🤖 Generated with Claude Code