Skip to content

Pin brace-expansion@1 to a patched release via override - #31

Merged
manuelpuyol merged 1 commit into
masterfrom
mp/audit-brace-expansion
Aug 3, 2026
Merged

Pin brace-expansion@1 to a patched release via override#31
manuelpuyol merged 1 commit into
masterfrom
mp/audit-brace-expansion

Conversation

@manuelpuyol

Copy link
Copy Markdown
Contributor

Follow-up to #30, which cleared everything npm audit fix could reach. One high-severity brace-expansion finding remained — npm audit fix converges without moving the pinned transitive copy.

One copy was vulnerable:

Path Was Now
eslint-plugin-github@eslint/eslintrcminimatch@3 1.1.13 1.1.18

Adds a version-scoped override:

"brace-expansion@1": "^1.1.18"

Scoping to the v1 line matters — a blanket override would drag the 2.1.4 (mocha) and 5.0.9 (eslint) copies onto the wrong major. Both of those are already on patched releases and are left untouched.

Resolves GHSA-3jxr-9vmj-r5cp, GHSA-mh99-v99m-4gvg, GHSA-rgw5-rvv9-x895.

Still outstanding after this

Two low severity findings for diff (GHSA-73rr-hh4g-fpgx) via mocha. There is no clean fix available:

  • Every mocha release through the latest (11.8.0) declares diff: ^7.0.0, and the entire v7 line falls in the vulnerable 6.0.0 - 8.0.2 range.
  • npm audit fix --force "fixes" it by downgrading mocha to 11.3.0.
  • Overriding to diff@^8.0.4 pushes mocha past the major it declares support for.

This needs an upstream mocha bump. It is dev-only (test runner diff rendering), so leaving it.

Validation

  • npm test passes (build + lint + 18 tests)

The remaining high-severity brace-expansion advisories could not be
resolved by 'npm audit fix' -- it converges without moving the pinned
transitive copy.

Adds a version-scoped override so the v1 line resolves to a patched
release, leaving the v2 and v5 copies (already patched) untouched:
  brace-expansion@1 -> ^1.1.18 (was 1.1.13, via @eslint/eslintrc)

Build, lint and tests pass.
Copilot AI review requested due to automatic review settings August 3, 2026 20:22
@manuelpuyol
manuelpuyol requested a review from a team as a code owner August 3, 2026 20:22

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.

Pull request overview

Pins the vulnerable v1 brace-expansion dependency to a patched release without affecting other major versions.

Changes:

  • Adds a version-scoped npm override for brace-expansion@1.
  • Updates the lockfile from 1.1.13 to 1.1.18.
Show a summary per file
File Description
package.json Adds the scoped dependency override.
package-lock.json Locks the patched transitive dependency.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@manuelpuyol
manuelpuyol merged commit 487d2dc into master Aug 3, 2026
6 checks passed
@manuelpuyol
manuelpuyol deleted the mp/audit-brace-expansion branch August 3, 2026 20:24
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