fix: upgrade compress to v1.20.2 for GO-2026-6865

Merged
CH
1mo ago
+3-3

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.2 followed by the full go mod tidy command; 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.json advisory identifies v1.20.2 as the first fixed version; go list -m -json github.com/klauspost/compress@v1.20.2 confirmed the release exists and points to the advisory's fixing commit.
  • Baseline: syft dir:repo -o cyclonedx-json=verify/sbom-before.json, then GRYPE_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, then GRYPE_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 tidy completed successfully. A subsequent go mod tidy -diff produced no changes, and go list -m github.com/klauspost/compress confirmed 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/huff0 passed for both affected decoding packages. git diff --check passed. The full application test suite was not run.

Risk Assessment

View the risk assessment in Chainloop