Skip to content

build(deps): bump brace-expansion patches to clear GHSA-3jxr / GHSA-mh99 - #1200

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/dependabot-alerts-investigation-c7de
Draft

build(deps): bump brace-expansion patches to clear GHSA-3jxr / GHSA-mh99#1200
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/dependabot-alerts-investigation-c7de

Conversation

@cursor

@cursor cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

What & why

Refreshes stale yarn.lock resolutions for brace-expansion across the three version lines currently pulled in as a transitive dep (all via minimatch, all in dev/build tooling chains). Yarn had cached older versions even though the semver ranges (^1.1.7, ^2.0.1, ^5.0.5) held by the parent packages already accept newer patches on npm.

Range Before After Parent
^1.1.7 1.1.16 1.1.18 minimatch@3.1.5
^2.0.1 2.1.1 2.1.4 minimatch@5.1.9
^5.0.5 5.0.6 5.0.9 minimatch@10.2.5

Clears the following Dependabot alerts (both high):

  • GHSA-3jxr-9vmj-r5cp — DoS via exponential-time expansion of consecutive non-expanding {} groups (fixed in 2.1.2 / 5.0.7).
  • GHSA-mh99-v99m-4gvg — DoS via unbounded expansion length causing an out-of-memory process crash (fixed in 1.1.17 / 2.1.3 / 5.0.8).

How

Deleted the three stale brace-expansion blocks from yarn.lock and re-ran yarn install, which re-resolved the ranges to the newest patch releases on the registry. No package.json / resolutions changes — the ranges upstream already allow these versions.

Risk

Low. All three consumers (minimatch@3, minimatch@5, minimatch@10) are only reached via dev/build tooling (jest, semantic-release helpers, node-gyp, etc.). No runtime code path in the published @duffel/api bundle uses these. Both advisories are DoS-only (not RCE).

Verification

  • yarn npm audit --recursive --all — no remaining real CVEs on root (only pre-existing deprecation notices for eslint@8, glob@7, inflight, rimraf@3, etc., which are not vulnerabilities).
  • yarn test — all 37 suites / 139 tests pass.
  • yarn build — succeeds.

Not addressed here

examples/with-next still has next@16.2.11 pulling in postcss@8.4.31 (GHSA-qx2v / GHSA-6g55 / GHSA-r28c) and sharp@0.34.5 (GHSA-f88m). The latest stable next@16.2.12 still pins these same versions, so it cannot be cleared by a lockfile refresh alone. This is called out on Slack for follow-up rather than force-overriding a Next.js internal dependency in an example app.

Open in Web View Automation 

….0.9

Refreshes stale yarn.lock resolutions for brace-expansion to pick up
the latest patch releases across the three version lines that satisfy
existing semver ranges (^1.1.7, ^2.0.1, ^5.0.5) held by minimatch@3.1.5,
minimatch@5.1.9 and minimatch@10.2.5 (all dev/build tooling chains).

Clears the following Dependabot alerts:
- GHSA-3jxr-9vmj-r5cp (high) — brace-expansion DoS via exponential-time
  expansion of consecutive non-expanding {} groups
  (fixed in 2.1.2 / 5.0.7)
- GHSA-mh99-v99m-4gvg (high) — brace-expansion DoS via unbounded
  expansion length causing an out-of-memory process crash
  (fixed in 1.1.17 / 2.1.3 / 5.0.8)

No manifest / resolutions changes; existing tests and build pass.

Co-authored-by: Andreja Kogovsek <andrejak@users.noreply.github.com>
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.

1 participant