Repository navigation
fix: upgrade compress to v1.20.2 for GO-2026-6865 - #3788
Merged
Merged
Conversation
Contributor
Author
AI Session Checks — ⏭️ bypassed by labelAI Coding Session Check BypassedThis PR carries the Learn more about Chainloop Trace. Powered by Chainloop and Chainloop Trace |
jiparis
approved these changes
Nov 6, 2026
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.
Summary
Upgrade the indirect dependency github.com/klauspost/compress from v1.20.1 to v1.20.2, the first fixed release identified by the published Go advisory. Keep the patch limited to the root module's dependency manifest and checksums.
Vulnerability Fixed
GO-2026-6865-github.com/klauspost/compress (GO-2026-6865; aliases CVE-2026-116591 and GHSA-fpmh-frq8-7rj8), HIGH: malformed two-block Zstandard frames can trigger a decoding panic and denial of service if vulnerable decoding is reached. The prior assessment leaves application-wide reachability under investigation.
Changes Made
go get github.com/klauspost/compress@v1.20.2followed by the fullgo mod tidycommand; replace the old release's checksums with package-manager-generated checksums for the fixed release.Verification
vuln.go.dev/ID/GO-2026-6865.jsonadvisory identifies v1.20.2 as the first fixed version;go list -m -json github.com/klauspost/compress@v1.20.2confirmed the release exists and points to the advisory's fixing commit.syft dir:repo -o cyclonedx-json=verify/sbom-before.json, thenGRYPE_DB_AUTO_UPDATE=false timeout 120s grype sbom:verify/sbom-before.json --only-fixed -o json.syft dir:repo -o cyclonedx-json=verify/sbom-after.json, thenGRYPE_DB_AUTO_UPDATE=false timeout 120s grype sbom:verify/sbom-after.json --only-fixed -o json.go mod tidycompleted successfully. A subsequentgo mod tidy -diffproduced no changes, andgo list -m github.com/klauspost/compressconfirmed v1.20.2. These commands used writable temporary GOPATH and GOCACHE directories because the default module-cache location was read-only.go test github.com/klauspost/compress/fse github.com/klauspost/compress/huff0passed for both affected decoding packages.git diff --checkpassed. The full application test suite was not run.Risk Assessment
View the risk assessment in Chainloop