Skip to content

fix(deps): unstick the brace-expansion override off a now-vulnerable pin - #414

Merged
Ducksss merged 1 commit into
devfrom
fix/audit-stale-pnpm-overrides
Jul 29, 2026
Merged

Ducksss merged 1 commit into
devfrom
fix/audit-stale-pnpm-overrides

Conversation

@Ducksss

@Ducksss Ducksss commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Follow-up to #365 / #412. Audited the entire pnpm.overrides block against current GitHub advisories. Two entries had gone stale — one of them is a live HIGH exposure, not just dead weight.

1. brace-expansion — the override was holding the tree on vulnerable code

GHSA-mh99-v99m-4gvg / CVE-2026-14257 — DoS via unbounded expansion length causing an out-of-memory process crash, HIGH, CVSS 7.5, published 2026-07-24. Vulnerable range: <= 5.0.7.

Both existing overrides pinned versions inside that range:

override forces status
brace-expansion@<1.1.16 1.1.16 ❌ vulnerable
brace-expansion@>=5.0.0 <5.0.7 5.0.7 ❌ vulnerable — and the range doesn't even cover the version it forces

That second one is the nastier shape: the range excludes 5.0.7, so anything already asking for 5.0.7 sailed straight through unmodified while the override looked like it was doing its job.

Upstream backported the fix per major line rather than only on 5.x, so each line moves to its own patched release instead of forcing a v1 consumer up four majors:

-      "brace-expansion@<1.1.16": "1.1.16",
-      "brace-expansion@>=5.0.0 <5.0.7": "5.0.7",
+      "brace-expansion@<1.1.17": "1.1.17",
+      "brace-expansion@>=5.0.0 <5.0.8": "5.0.8",

On trusting 1.1.17: GitHub's advisory carries a single flat <= 5.0.7 range that hasn't been split per line, so 1.1.17 still reads as affected there. It isn't — it's the v1 backport: juliangruber/brace-expansion#129, base v1, merged 2026-07-29T10:43Z, with 1.1.17 published 10:45Z. Rather than take the version number's word for it I checked the shipped source — both 1.1.17 and 5.0.8 carry EXPANSION_MAX_LENGTH = 4_000_000 with the CVE-2026-14257 citation in the comment.

Both versions are genuinely in the tree: 1.1.17 via minimatch 3.x chains, 5.0.8 via [email protected] ← @typescript-eslint/typescript-estree.

2. vite — dead range after #365

"vite@>=7.0.0 <=7.3.4": "7.3.5" matches nothing now; the lockfile resolves only [email protected]. Retargeted to the 8.x line as a forward guard against transitive drift:

-      "vite@>=7.0.0 <=7.3.4": "7.3.5",
+      "vite@>=8.0.0 <=8.0.15": "8.0.16",

Audited and left alone

Re-checked against current advisories; each is at or above its first-patched version, and every version present in the tree is covered:

esbuild 0.28.1 · fast-uri 3.1.4 · postcss 8.5.18 · ws 8.21.0 · js-yaml 4.3.0 · sharp 0.35.3 · @babel/core 7.29.7

One note for later, deliberately not changed here: js-yaml has a 5.x advisory line (>= 5.0.0, <= 5.2.1, patched 5.2.2) that js-yaml@<4.3.0 would not cover. No 5.x is in the tree, so adding a guard now would be speculative — and speculative guards are exactly what goes stale unnoticed.

Verification

lint, format:check, tsc --noEmit, test:registry, test:int (32 files / 379 tests) all green locally.

pnpm-lock.yaml churn is 32 lines, entirely the two brace-expansion version nodes and their integrity hashes.

Heads-up unrelated to this PR

#365's @playwright/test 1.62.0 bump means local checkouts need pnpm exec playwright install before test:int will pass — blog-visual-system.int.spec.ts launches chromium directly and 18 tests fail with Executable doesn't exist ... chromium_headless_shell-1234 until you do. Confirmed pre-existing on a clean dev with this PR's changes stashed, so it's not from this change. CI installs browsers in setup and is unaffected.

Audit of the whole `pnpm.overrides` block against current GitHub advisories.
Two entries had gone stale; the rest still sit at or above their first-patched
version and are unchanged.

brace-expansion — this one is a live HIGH exposure, not just dead weight.
GHSA-mh99-v99m-4gvg / CVE-2026-14257 (DoS via unbounded expansion length ->
OOM crash, CVSS 7.5) published 2026-07-24 with vulnerable range `<= 5.0.7`.
Both overrides pinned versions inside that range and therefore *held the tree
on vulnerable code*:

  brace-expansion@<1.1.16      -> 1.1.16   (vulnerable)
  brace-expansion@>=5.0.0 <5.0.7 -> 5.0.7  (vulnerable, and the range does not
                                            even cover the version it forces)

Upstream backported the fix per major line rather than only on 5.x, so each
line moves to its own patched release instead of forcing a v1 consumer up four
majors:

  brace-expansion@<1.1.17        -> 1.1.17
  brace-expansion@>=5.0.0 <5.0.8 -> 5.0.8

1.1.17 is the v1 backport (juliangruber/brace-expansion#129, base v1, merged
2026-07-29T10:43Z; 1.1.17 published 10:45Z). The GitHub advisory's flat
`<= 5.0.7` range has not been split per line yet, so 1.1.17 still reads as
affected there. Verified in the shipped source instead: both 1.1.17 and 5.0.8
carry `EXPANSION_MAX_LENGTH = 4_000_000` with the CVE-2026-14257 citation.
Tree resolves 1.1.17 (via minimatch 3.x chains) and 5.0.8 (via minimatch
10.2.5 <- @typescript-eslint/typescript-estree).

vite — `vite@>=7.0.0 <=7.3.4: 7.3.5` is dead as of #365. The tree now resolves
only vite 8.1.5, so nothing matches that range. Retargeted to the 8.x line as a
forward guard for transitive drift:

  vite@>=8.0.0 <=8.0.15 -> 8.0.16

Unchanged and re-verified as current: esbuild 0.28.1, fast-uri 3.1.4, postcss
8.5.18, ws 8.21.0, js-yaml 4.3.0, sharp 0.35.3, @babel/core 7.29.7.

Local: lint, format:check, tsc --noEmit, test:registry and test:int (32 files /
379 tests) all green.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 29, 2026 16:59
@vercel

vercel Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview, Comment Jul 29, 2026 5:09pm
payload-components-97bf Ready Ready Preview, Comment Jul 29, 2026 5:09pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Ducksss, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5f457a38-00f0-4d95-b021-cf55a6d8c6c5

📥 Commits

Reviewing files that changed from the base of the PR and between aa3b6a9 and 77e6954.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ducksss
Ducksss merged commit c09c66c into dev Jul 29, 2026
12 checks passed
@Ducksss
Ducksss deleted the fix/audit-stale-pnpm-overrides branch July 29, 2026 17:12

This branch was successfully deployed

2 active deployments
Preview – payload-components-97bf — 77e69544 Deployed Jul 29, 2026 by vercel[bot]
Preview – payload-components — 77e69544 Deployed Jul 29, 2026 by vercel[bot]
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