Skip to content

Remediate CVE-2026-111497 (Critical) in brotli, CVE-2026-116591 in klauspost/compress, and CVE-2026-97054 in Go - #3873

Merged
icanhasmath merged 3 commits into
masterfrom
security/bump-brotli-compress-go
Nov 24, 2026
Merged

icanhasmath merged 3 commits into
masterfrom
security/bump-brotli-compress-go

Conversation

@icanhasmath

@icanhasmath icanhasmath commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Ticket: PROD-3362

What

Module From To Advisory Severity Reachable from
github.com/andybalholm/brotli v1.2.0 v1.2.7 GO-2026-6888 / CVE-2026-111497 / GHSA-9v8h-qqgm-4m35 Critical (9.8) proxyreader.ProxyReader.Read → brotli.Reader.Read
github.com/klauspost/compress v1.18.7 v1.20.2 GO-2026-6865 / CVE-2026-116591 / GHSA-fpmh-frq8-7rj8 High archiver.CreateArchive → fse.Compress/Decompress
Go toolchain (go directive) 1.26.10 1.26.11 GO-2026-6859 / CVE-2026-97054 (net/http) — retryhttp.Client.Do
golang.org/x/crypto v0.58.0 v0.59.0 GO-2026-5932 (openpgp unmaintained) Unknown not compiled in; fixes Trivy Scan job, which also fails on master

Dependabot does not raise the brotli Critical for the Go module, so it does not appear among the repo's alerts. govulncheck finds it.

Verification

  • govulncheck ./... on master shows 5 reachable vulnerabilities. With this change it shows 2: GO-2026-6875 and GO-2026-6872 in labstack/echo, which have no upstream fix (Dependabot Make run command parse variables #97 and Made state show only dump info we have and prettied it up a little #98).
  • go build ./... passes.
  • go test -vet=off (the invocation activestate.yaml uses) passes for internal/archiver, internal/unarchiver, internal/proxyreader, internal/httputil, internal/fileutils, internal/python/wheelinstall, internal/updater, internal/retryhttp and pkg/runtime/...
  • Without -vet=off, go test fails to build internal/fileutils and internal/updater (and go vet fails in pkg/platform/model) on non-constant format strings. The same failure happens on master, and this change does not touch those files.
  • go mod verify, go mod tidy -diff and a fresh go mod vendor all match the committed tree. Cross-builds of ./cmd/... for windows/amd64, darwin/arm64, darwin/amd64 and linux/arm64 pass.
  • The CI build matrix (.github/workflows/build.yml) now installs Go 1.26.11, matching the go directive.

Not covered here: the release branch

The release branch is still on brotli v1.2.0, so the shipped state and state-svc binaries stay vulnerable to the Critical until a release built from master ships. PROD-3362 (reported against those binaries) closes only then. The release branch (the shipped 0.48.x) is still on echo v4.15.4, which carries Critical CVE-2026-118264 (fixed in 4.16.1 on master, Dependabot #95). It is also on klauspost/compress v1.18.0, x/net v0.58.0 and go 1.26.6, and govulncheck reports 23 reachable vulnerabilities there. Those fixes reach users only through the next RC/release cut.

…116591 in klauspost/compress, and CVE-2026-97054 in Go

- github.com/andybalholm/brotli v1.2.0 -> v1.2.7: GO-2026-6888 / CVE-2026-111497
  (GHSA-9v8h-qqgm-4m35, CVSS 9.8). Reachable via proxyreader.ProxyReader.Read.
  Dependabot does not raise this one for the Go module.
- github.com/klauspost/compress v1.18.7 -> v1.20.2: GO-2026-6865 / CVE-2026-116591
  (GHSA-fpmh-frq8-7rj8, High). Reachable via archiver.CreateArchive.
- go 1.26.10 -> 1.26.11: GO-2026-6859 / CVE-2026-97054 (net/http).

govulncheck ./... now reports only GO-2026-6875 and GO-2026-6872 in echo,
which have no upstream fix (Dependabot alerts #97, #98).
Trivy's Scan job fails on x/crypto v0.58.0 (GO-2026-5932, the unmaintained
openpgp package). The State Tool does not compile x/crypto/openpgp, but the
scan is module-level. v0.59.0 pulls the matching x/sys, x/term, x/text,
x/sync, x/mod and x/tools minors.
go.mod now requires go 1.26.11, but the build matrix still installed
1.26.10, so every CI job silently fetched a second toolchain through
GOTOOLCHAIN=auto. Earlier Go bumps moved both pins together.
@icanhasmath
icanhasmath requested a review from MDrakos November 23, 2026 23:54

@MDrakos MDrakos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Versions match the advisories (brotli 1.2.7, compress 1.20.2, go 1.26.11 are the exact fixed versions), go.mod, go.sum and vendor agree, and go mod verify is clean. The x/ sibling bumps all come from the x/crypto bump. CI is green. Note: the release branch still ships brotli 1.2.0, so PROD-3362 stays open until a release is cut.

@icanhasmath
icanhasmath marked this pull request as ready for review November 24, 2026 16:47
@icanhasmath
icanhasmath merged commit 655e42a into master Nov 24, 2026
13 checks passed
@icanhasmath
icanhasmath deleted the security/bump-brotli-compress-go branch November 24, 2026 16:48
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.

2 participants