Skip to content

Pin brace-expansion to patched releases via overrides - #40

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

Pin brace-expansion to patched releases via overrides#40
manuelpuyol merged 1 commit into
mainfrom
mp/audit-brace-expansion

Conversation

@manuelpuyol

Copy link
Copy Markdown
Contributor

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

Two copies were vulnerable:

Path Was Now
@eslint/eslintrcminimatch@3 1.1.15 1.1.18
eslintminimatch@10 5.0.6 5.0.9

Adds two version-scoped overrides so each major line resolves to a patched release:

"brace-expansion@1": "^1.1.18",
"brace-expansion@5": "^5.0.9"

Scoping by major matters here — a blanket "brace-expansion": "^5.0.9" would force v5 onto minimatch@3, which expects ^1.1.7. This keeps every consumer on its expected major.

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

npm audit now reports 0 vulnerabilities.

Validation

  • npm run lint passes (eslint + tsc --noEmit)
  • npm test passes (22 tests)
  • npm run build passes

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

Adds version-scoped overrides so each major line resolves to a patched
release, keeping every consumer on its expected major:
  brace-expansion@1 -> ^1.1.18 (was 1.1.15, via @eslint/eslintrc)
  brace-expansion@5 -> ^5.0.9  (was 5.0.6, via eslint)

npm audit now reports 0 vulnerabilities. Lint, build and tests pass.
Copilot AI review requested due to automatic review settings August 3, 2026 20:20
@manuelpuyol
manuelpuyol requested a review from a team as a code owner August 3, 2026 20:20
@manuelpuyol
manuelpuyol merged commit 47ebed0 into main Aug 3, 2026
7 checks passed

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 transitive brace-expansion major lines to patched releases, resolving the remaining audit findings without incompatible upgrades.

Changes:

  • Adds version-scoped npm overrides for v1 and v5.
  • Regenerates the lockfile with patched versions.
Show a summary per file
File Description
package.json Adds scoped security overrides.
package-lock.json Locks patched transitive releases.

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

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