security: bump golang.org/x/mod to fix CVE-2026-56864/56865 - #538
Merged
Conversation
Trivy's vulnerability DB started flagging the transitive x/mod v0.37.0 dependency (pulled in via pkg/plugin -> sigstore-go) as HIGH, failing the Security Scan check on every open PR regardless of what changed. Bump to v0.40.0, the fixed version.
Same CVE-2026-56864/56865 fix as the root module, missed on the first pass because lambda/ttl-reaper pins its own go.mod (a separate Go module with a replace directive to ../.., per this repo's structure) and isn't touched by `go mod tidy` at the repo root. This is exactly the "nested module pins its own deps" trap noted for lagotto#43 — a stale go.mod in a nested lambda module fails CI without naming which module.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Trivy's vulnerability DB started flagging the transitive
golang.org/x/mod v0.37.0dependency (pulled in viapkg/plugin-> sigstore-go's module-verification code) as HIGH severity for CVE-2026-56864/CVE-2026-56865 — a malicious GOSUMDB/GOPROXY could forge module checksums. This started failing the Security Scan check on every open PR in this repo regardless of what the PR actually changed, since it's a scan of the dependency graph onmain, not a diff.Bumped to v0.40.0 (the fixed version) via
go get golang.org/x/mod@v0.40.0 && go mod tidy. No other dependency changed.go build ./...,go vet ./..., andgo test -short ./...all clean.