Skip to content

chore: force patched brace-expansion via pnpm overrides (GHSA-3jxr-9vmj-r5cp) - #334

Merged
allxsmith merged 2 commits into
mainfrom
claude/bestax-compound-expressions-w7vdi7
Jul 20, 2026
Merged

allxsmith merged 2 commits into
mainfrom
claude/bestax-compound-expressions-w7vdi7

Conversation

@allxsmith

@allxsmith allxsmith commented Jul 20, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

Description

Fixes the post-merge CI failure on main: pnpm audit --audit-level=high newly fails because brace-expansion picked up a high-severity DoS advisory (GHSA-3jxr-9vmj-r5cp) across three ranges (<1.1.16, 2.0.0–2.1.1, 3.0.0–5.0.6), reached transitively through minimatch in the jest and eslint toolchains (dev-only; ~100 paths). This blocked the audit step on the #331 merge commit and caused the Publish to npm job to be skipped, so the pending minor release hasn't gone out.

The fix adds per-major pnpm overrides in pnpm-workspace.yaml, mirroring the existing serialize-javascript security override, forcing the patched releases 1.1.16 / 2.1.2 / 5.0.7. All three patched versions were published 12+ days ago, comfortably past the 3-day minimumReleaseAge cooldown, so no exclude entry is needed. Lockfile regenerated.

After the change, pnpm audit --audit-level=high passes locally (only 3 moderate advisories remain, below the CI gate), and the full pnpm all gate is green.

  • bulma-ui (@allxsmith/bestax-bulma)
  • create-bestax (create-bestax)
  • docs (@allxsmith/bestax-docs)
  • Other (please specify): workspace-level dependency overrides (pnpm-workspace.yaml + pnpm-lock.yaml) — no package source changes

Related Issue(s)

Related to #331 (its merge surfaced the failure; merging this unblocks the skipped release)

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Performance
  • Build tooling
  • Other (please describe):

Checklist

  • My code follows the project style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • I have added/updated documentation as needed
  • I have updated Storybook stories as needed (bulma-ui)
  • My changes require a change to the documentation
  • All new and existing tests passed
  • Any relevant dependencies are updated
  • If this PR changes commands, conventions, or package structure, the affected CLAUDE.md files are updated

Screenshots / Demos

# before                                   # after
pnpm audit --audit-level=high              pnpm audit --audit-level=high
6 vulnerabilities found                    3 vulnerabilities found
Severity: 3 moderate | 3 high  → exit 1    Severity: 3 moderate       → exit 0

Additional Context

🤖 Generated with Claude Code

https://claude.ai/code/session_01NuJRpjY81Dzoo92ZooE8Xt


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated workspace dependency resolution to require patched versions of a transitive package.
    • Prevented vulnerable package versions from being selected during installation.

…mj-r5cp)

pnpm audit --audit-level=high newly fails on main: brace-expansion has a
high-severity DoS advisory across three ranges (<1.1.16, 2.0.0-2.1.1,
3.0.0-5.0.6), reached transitively through minimatch in the jest and
eslint toolchains. Per-major overrides force the patched releases
(1.1.16 / 2.1.2 / 5.0.7), mirroring the existing serialize-javascript
override. All patched versions clear the 3-day minimumReleaseAge
cooldown, so no exclude entry is needed. This unblocks the skipped
'Publish to npm' job so the pending 3.5.0 release can go out.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NuJRpjY81Dzoo92ZooE8Xt
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 55 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: 2575914e-9c10-40b9-af98-ae3b608f50ca

📥 Commits

Reviewing files that changed from the base of the PR and between e35a945 and 2a7f48e.

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

Walkthrough

The workspace configuration adds range-specific pnpm overrides that force brace-expansion to patched minimum versions across three major-version ranges.

Changes

Dependency Override Updates

Layer / File(s) Summary
Patched brace-expansion constraints
pnpm-workspace.yaml
Adds overrides for brace-expansion ranges below 1.1.16, from 2.0.0 below 2.1.2, and from 3.0.0 below 5.0.7.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately names the main change: forcing patched brace-expansion through pnpm overrides.
Description check ✅ Passed The description follows the template well and covers summary, affected scope, issue link, change type, checklist, screenshots, and context.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/bestax-compound-expressions-w7vdi7

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.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

Preview URL: https://3a56c7f6.bestax.pages.dev

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
pnpm-workspace.yaml (1)

43-47: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Bound the v5 override to <6. brace-expansion@>=3.0.0 <5.0.7 can drift to a future major on lockfile refresh; use >=5.0.7 <6 instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm-workspace.yaml` around lines 43 - 47, Update the brace-expansion v5
override in the workspace override configuration so its replacement range is
bounded to >=5.0.7 and <6, while preserving the existing source range and other
overrides.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pnpm-workspace.yaml`:
- Around line 43-47: Update the brace-expansion v5 override in the workspace
override configuration so its replacement range is bounded to >=5.0.7 and <6,
while preserving the existing source range and other overrides.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2969dd16-38ad-461f-bd0d-8a080309dca5

📥 Commits

Reviewing files that changed from the base of the PR and between 07516c5 and e35a945.

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

Review feedback: an unbounded '>=5.0.7' replacement could drift onto a
future brace-expansion 6.x on lockfile refresh; '>=5.0.7 <6' keeps the
override within the patched major.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NuJRpjY81Dzoo92ZooE8Xt
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

Preview URL: https://5609f70c.bestax.pages.dev

@allxsmith allxsmith added the deep-review label Jul 20, 2026 — with Claude

@claude claude Bot 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.

Deep review — 0 finding(s)

# Severity Area Finding Location
— — — No blocking defects found. —

Overall: This is a pure supply-chain chore that forces the patched brace-expansion releases (DoS advisory GHSA-3jxr-9vmj-r5cp) via three per-major pnpm overrides. I verified the three override key-ranges map exactly onto the advisory's affected ranges (<1.1.16, 2.0.0–2.1.1, 3.0.0–5.0.6), each replacement is bounded within its major (<2, <3, <6), and the lockfile resolves every remaining brace-expansion copy to a patched version (1.1.16 / 2.1.2 / 5.0.7) with no unpatched stragglers. pnpm-workspace.yaml and pnpm-lock.yaml overrides are identical. No product code, no API, and no runtime behavior changes — the human's only real check is that pnpm audit --audit-level=high passes in CI (I couldn't run it here since it needs network access).

🏄 Totally clean little wax job on the dependency tree, dude — three gnarly brace-expansion versions swapped out for the patched ones, ranges dialed in tight, nothing else disturbed. Green audit and it's good to paddle out.

@allxsmith
allxsmith merged commit b9c1dc7 into main Jul 20, 2026
20 of 21 checks passed
@allxsmith
allxsmith deleted the claude/bestax-compound-expressions-w7vdi7 branch July 20, 2026 23:08
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bestax-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants