Skip to content

fix(security): fix Brotli and scope its scanner exception - #1979

Merged
gerchowl merged 5 commits into
release/1.18.1from
bugfix/1977-brotli-cve
Nov 2, 2026
Merged

gerchowl merged 5 commits into
release/1.18.1from
bugfix/1977-brotli-cve

Conversation

@gerchowl

@gerchowl gerchowl commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Ship Google Brotli 1.2.1 to fix CVE-2026-111497 and scope the remaining Vulnix false positive to that exact package/version. Vulnix 1.12.4 ignores CPE vendors: NVD's andybalholm Go-port range (below 1.2.7) also matches Google's patched 1.2.1. A CVE-wide exception would incorrectly allow vulnerable Google Brotli 1.2.0.

Type of Change

  • fix -- Bug fix
  • build -- Build system or dependency changes

Modifiers

  • Breaking change (!)

Changes Made

  • Keep the stable nixos-26.05 pin at 08d3a97586f6b6343b3b5e799980773629432610, shipping Brotli 1.2.1 and SQLite 3.53.3. The stable advance includes 392 upstream commits.
  • Add exact CVE@pname@version matching to vulnix-gate while preserving existing bare-CVE entries and expiry semantics. The Brotli entry is CVE-2026-111497@[email protected], reviewed 2026-11-02, due for review 2026-11-25, expiring Wednesday 2026-12-02 (30 days).
  • Remove CVE-2026-11822 and CVE-2026-11824: SQLite's upstream CVE table identifies 3.53.2 as fixing both; the stable pin ships 3.53.3.
  • Leave glibc entries and their expiry unchanged: policy requires re-verification on renewal, and these are not being renewed. Independently confirmed all six cited fix commits remain in the new stable pin's applied aggregate patch.
  • Correct both changelogs and shorten the Nix dependency documentation; document scoped exception syntax in the security policy.

Evidence: Google advisory, patched at 1.2.1, NVD CPE ranges, SQLite CVE fix table.

Changelog Entry

Under the existing 1.18.1 Security section in both changelog copies:

  • Fix Brotli decoder CVE-2026-111497 (#1977)
    • The stable input ships Google Brotli 1.2.1; register the remaining Vulnix CPE false positive with evidence and an exact package/version exception that leaves 1.2.0 blocking.
    • Remove the two SQLite exceptions fixed by SQLite 3.53.3; see Nix dependency policy.

Testing

  • Targeted tests pass locally
  • Manual testing performed
  • Real Vulnix/gate controls completed
  • All CI checks green on pushed head f12aa67, including required Test Summary and both Home Matrix platforms

Manual Testing Details

  • Red test committed first: 1 failed, 18 passed (pytest exit 1, expected).
  • After implementation: gate and expiry tests, 44 passed (exit 0); four workers with isolated basetemp outside the checkout.
  • uv run check-expirations .trivyignore .vulnixignore: 11 exceptions validated (exit 0).
  • Commit hooks passed inside nix develop (exit 0), including lint, documentation generation/sync, expiry, and commit-message checks.
  • Unit controls ensure the exact exception accepts Brotli 1.2.1, rejects 1.2.0 and another package, and rejects expired scoped exceptions.
  • Added negative controls for version 1.2.10, version 1.2.1-lib, package python3.13-brotli, and package Brotli. In-memory mutation checks reject prefix matching (2 failures), suffix matching (1 failure), and case-insensitive matching (1 failure), each pytest exit 1 as expected; all 23 gate tests pass under the unchanged exact matcher (exit 0).
  • Real scanner commands (Vulnix 1.12.4, 16 GB memory cap):
    • vulnix --mirror https://vig-os.github.io/nvd-mirror/ --closure /nix/store/2l6kf3nfwb4k9c5dsdg8k1fs2jr5qikb-brotli-1.2.1-lib --json > fixed.json: exit 2, CVE-2026-111497 in brotli 1.2.1.
    • vulnix --mirror https://vig-os.github.io/nvd-mirror/ --closure /nix/store/g64gr9m6lhzp9aq393yv0sxlr5176jrc-brotli-1.2.0-lib --json > vulnerable.json: exit 2, same CVE in brotli 1.2.0.
  • uv run vulnix-gate fixed.json --register <original-register>: exit 1 (the false positive reproduced).
  • uv run vulnix-gate fixed.json --register .vulnixignore: exit 0, all blocking findings in the small runtime closure covered.
  • uv run vulnix-gate vulnerable.json --register .vulnixignore: exit 1, only CVE-2026-111497 in brotli 1.2.0 blocks. No findings were filtered out of either JSON file.
  • No full image builds were run locally. Gate code followed red/commit/green. The exact production matcher is unchanged by the test hardening.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented the exception scope and evidence
  • I have updated documentation and both release changelogs
  • Regression tests cover vulnerable versions, other products, and expiry
  • Targeted existing tests pass locally

Additional Notes

Targets release/1.18.1 on the existing branch and PR. No merge and no workflow dispatch in this round. The full rebuilt-image Vulnix gate remains a release-candidate check; this PR's CI does not run Vulnix.

Refs: #1977

@gerchowl
gerchowl force-pushed the bugfix/1977-brotli-cve branch from ebb52f2 to ed22b84 Compare October 30, 2026 00:50
@gerchowl gerchowl changed the title fix(nix): update Brotli decoder dependencies to 1.2.1 fix(security): fix Brotli and scope its scanner exception Nov 2, 2026
@gerchowl
gerchowl merged commit 451c10d into release/1.18.1 Nov 2, 2026
18 checks passed
@gerchowl
gerchowl deleted the bugfix/1977-brotli-cve branch November 2, 2026 04:18
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