fix: upgrade brotli to v1.2.7 for CVE-2026-111497

Merged
CH
1mo ago
+3-3

Summary

Upgrade the indirect github.com/andybalholm/brotli dependency from v1.2.2 to v1.2.7, the lowest fixed release identified by the official advisory. This removes the vulnerable component without changing application code or unrelated dependencies.

Vulnerability Fixed

GO-2026-6888-github.com/andybalholm/brotli (GO-2026-6888; CVE-2026-111497; GHSA-c9gr-gmg4-2vqv), severity: CRITICAL. Crafted compressed streams can trigger excessive decompressor allocations and memory-exhaustion denial of service.

Changes Made

  • Update the indirect requirement in go.mod from v1.2.2 to v1.2.7.
  • Regenerate go.sum with the package manager, replacing the vulnerable release's checksums.
  • Preserve unrelated dependencies and pre-existing working-tree changes.

Verification

  • Confirmed the vulnerable v1.2.2 requirement and checksums before editing.
  • Confirmed v1.2.7 exists with go list -m -json github.com/andybalholm/brotli@v1.2.7 and go mod download -json github.com/andybalholm/brotli@v1.2.7; the official advisory endpoint https://vuln.go.dev/ID/GO-2026-6888.json identifies 1.2.7 as the first fixed version.
  • Applied go get github.com/andybalholm/brotli@v1.2.7, then ran the full go mod tidy in the repository root. A writable temporary GOPATH and GOMODCACHE were used for dependency resolution with checksum verification enabled. go mod tidy -diff, go mod verify, and git diff --check -- go.mod go.sum all passed. Application builds and tests were not run.
  • Baseline: syft dir:repo -o cyclonedx-json=verify/sbom-before.json, then GRYPE_DB_AUTO_UPDATE=false grype sbom:verify/sbom-before.json --only-fixed -o json.
  • Patched check: syft dir:repo -o cyclonedx-json=verify/sbom-after.json, then GRYPE_DB_AUTO_UPDATE=false grype sbom:verify/sbom-after.json --only-fixed -o json.
  • Classification: unable-to-verify. Both scans completed successfully; neither reported the target advisory or either alias. The SBOM confirms the component changed from v1.2.2 to v1.2.7, but the baseline did not detect the vulnerability, so the clean patched scan does not prove resolution. The initial baseline attempt with automatic database updating stalled and was stopped; both completed checks used the same cached database. Scanner verification remains unverified, reducing confidence despite the advisory-confirmed version fix.

Risk Assessment

View the risk assessment in Chainloop