← Back to Pull requests

AAP-99540 update brotli to fix CVE-2026-111497 #275

Closed
unknown closed this pull request without merging on Nov 02, 2026 07:50 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 13:16 UTC
Author

Summary

Bump the transitive brotli dependency from 1.2.0 to 1.2.1 to fix
CVE-2026-111497 — an
out-of-bounds write in the Brotli decoder affecting versions 1.0.3 through 1.2.0.

brotli is pulled in via fonttools[woff] (WeasyPrint), which uses it to
decompress WOFF2 fonts during PDF report generation.

Jira: AAP-99540

Changes

  • requirements-build.txt — brotli==1.2.1, generated with

  • NO_UPGRADE=1 make sync-requirements EXTRA_DEPS="brotli>=1.2.1"
    so no other runtime dependency is changed.
  • requirements-build-tools.txt — regenerated with make sync-build-tools.

  • Besides brotli's build deps, this picks up the latest build backends
    (hatchling, flit-core, setuptools, virtualenv, ...) that pybuild-deps
    resolves, so the file stays in sync for make requirements-check.
  • licenses/licenses.md — brotli version updated to 1.2.1.
  • Not included

  • The system libbrotli RPM (1.0.9-9.el9_7) comes from the UBI9 base image

  • and will be updated with the base image once a fixed build is available.

    Testing

    Tested locally:

  • Rendered a PDF with WeasyPrint using an embedded WOFF2 font and confirmed

  • it is decompressed via brotli 1.2.1 without errors.
  • Installed requirements-build.txt with --require-hashes; pip check clean.

  • pytest -k "report or pdf" — 10 passed.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Chores
    Updated versions and integrity records for build-time packages, including Brotli, and refreshed build-tool dependency metadata.
    Updated the recorded Brotli license version; its MIT license remains unchanged.
    These maintenance updates affect build tooling and package records only. No application features or behavior changed, and no action is needed from people using the application.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 255 lines (+191 / -64) across 3 files Reviewer: kcagran Review duration: 6873m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 255 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #275"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%