Skip to content

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

Merged
jiparis merged 1 commit into
mainfrom
chainloop/fix-cve-2026-111497-20261106-082204
Nov 6, 2026
Merged

jiparis merged 1 commit into
mainfrom
chainloop/fix-cve-2026-111497-20261106-082204

Conversation

@chainloop-platform

@chainloop-platform chainloop-platform Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

View guided diff

@chainloop-platform

Copy link
Copy Markdown
Contributor Author

AI Session Checks — ⚠️ no AI session found

Missing AI Coding Sessions

This organization requires every PR to be backed by a Chainloop Trace AI coding session, and none was found for this one.

Please make sure the AI coding session evidence has been sent by the Chainloop CLI, or add the skip-ai-session label to this PR to bypass this check.

Learn more about Chainloop Trace.


Powered by Chainloop and Chainloop Trace

@jiparis
jiparis merged commit 43744e2 into main Nov 6, 2026
14 of 15 checks passed
@jiparis
jiparis deleted the chainloop/fix-cve-2026-111497-20261106-082204 branch November 6, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant