fix: upgrade compress to v1.20.2 for GO-2026-6865
Merged
CH
1mo ago+3+3+0123456789-3-3-0123456789
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
- Update the indirect requirement in go.mod from v1.20.1 to v1.20.2.
- Regenerate go.sum using
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. - Make no application, build, or CI configuration changes.
Verification
- Before editing, go.mod and go.sum both selected vulnerable v1.20.1. The fetched
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. - Baseline:
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. - Patched target:
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. - Both completed scans reported zero matches for GO-2026-6865 and its CVE/GHSA aliases. The SBOMs identified the component as v1.20.1 before and v1.20.2 after.
- Classification: unable-to-verify. The baseline did not report the target vulnerability, so the clean patched scan does not establish resolution. The original auto-updating scan did not complete and was terminated; both completed scans used the existing database, built November 5, 2026 at 06:21:06 UTC, before this Go advisory's publication at 22:54:32 UTC that day. The scanner result is unverified and confidence is reduced accordingly.
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.