← Back to Pull requests

fix(deps): override brace-expansion for CVE-2026-69152 #3500

Closed
unknown closed this pull request without merging on Aug 26, 2026 19:08 UTC
View on GitHub
unknown unknown commented on Aug 24, 2026 21:55 UTC
Author

Summary

Denial of Service via unbounded intermediate arrays in brace-expansion.

The expand() function did not apply maxLength while constructing comma-alternative intermediate arrays or padded sequences, allowing attacker-controlled input to exhaust memory or block the event loop. .

Fixed versions: 1.1.18 (1.x branch), 5.0.9 (5.x branch)

Changes

| Scope | Before | After |
|---|---|---|
| minimatch@<9.0.0 → brace-expansion (1.x chain) | 1.1.16 | 1.1.18 |
| nx → brace-expansion (direct dep) | 5.0.6 | 5.0.9 |
| Top-level brace-expansion (5.x) | 5.0.7 | 5.0.9 |

Strategy:

  • Updated minimatch@<9.0.0 scoped override from 1.1.16 → 1.1.18 to fix all packages in the minimatch@<9 → brace-expansion@1.x chain

  • Replaced minimatch@>=9.0.0 scoped brace-expansion override with a top-level brace-expansion@>=5.0.0 <5.0.9 range override (covers future installs)

  • Added nx scoped override → 5.0.9 to fix nx's direct brace-expansion: 5.0.6 dependency (which was not reachable via minimatch scoping)
  • After fix: npm audit reports 0 brace-expansion vulnerabilities.

    Test plan

  • npm audit shows 0 brace-expansion vulnerabilities

  • All brace-expansion instances in lock file verified at 1.1.18 or 5.0.9

  • No regressions in existing test suite

  • Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

    <!-- SELECT ONE. This is required — the PR check will fail if none is selected. -->

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (e.g., single page fix, styling tweak, documentation, test-only changes, copy/string updates). Minimal risk of unintended side effects.
  • 🤖 Generated with Claude Code

    Diff: 281 lines (+210 / -71) across 3 files Reviewer: keithjgrant Review duration: 2712m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 281 lines diff across 3 files
    0.40
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3500"
    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.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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.7% · Safe to merge
    15.7%