Skip to content

fix(deps): force minimatch ^11.0.1 for GHSA-g3hv-75wg-m249 - #321

Closed
luca-gr4vy wants to merge 1 commit into
mainfrom
fix/minimatch-ghsa-g3hv-75wg-m249
Closed

luca-gr4vy wants to merge 1 commit into
mainfrom
fix/minimatch-ghsa-g3hv-75wg-m249

Conversation

@luca-gr4vy

Copy link
Copy Markdown
Collaborator

Fixes Dependabot alerts 321 (example/yarn.lock) and 322 (yarn.lock): minimatch ReDoS, GHSA-g3hv-75wg-m249.

  • Every version from 7.0.0 up to 11.0.1 is affected, and there is no backport. Patched lines: 11.0.1+.
  • Latest parents still pin older ranges: @typescript-eslint/typescript-estree (^10), glob 9 under babel-plugin-module-resolver (^8), glob 13 under react-native-builder-bob (^10).
  • Adds yarn resolutions scoped by path, so the minimatch 3.x used by eslint 8 and glob 7 stays as it is.
  • Result: both lockfiles have only minimatch 11.0.8 + 3.1.5.
  • Risk: minimatch 11 requires Node 20 or newer. The repo already requires >= 20. The exports these parents import are unchanged.

Verified: bob build OK. eslint runs (it uses typescript-estree). yarn audit shows no minimatch findings in either workspace.

🤖 Generated with Claude Code

minimatch >=7 <11.0.1 is vulnerable to ReDoS via globparts
amplification, with no backport. Parents (typescript-estree,
builder-bob's glob, module-resolver's glob) still pin ^8/^10, so add
path-scoped yarn resolutions. minimatch 3.x consumers are unaffected.

Dependabot alerts:
- https://github.com/gr4vy/gr4vy-react-native/security/dependabot/321
- https://github.com/gr4vy/gr4vy-react-native/security/dependabot/322

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 15:39

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.

🟡 Changes recommended

The minimatch 11 override is incompatible with glob’s wildcard handling, causing Bob to find no source files and breaking clean JavaScript builds.

1 open issue
What changed in this PR

This PR addresses minimatch ReDoS advisory GHSA-g3hv-75wg-m249 in the library’s development dependencies and example app.

Changes:

  • Adds targeted Yarn resolutions for minimatch under TypeScript tooling, Bob, and Babel module resolver.
  • Updates both lockfiles to minimatch 11.0.8 while retaining existing 3.1.5 dependencies.
File Description
yarn.lock Updates minimatch and its transitive dependencies.
package.json Adds minimatch resolutions for TypeScript tooling and Bob.
example/​yarn.lock Replaces minimatch 8.x and 10.x with 11.0.8.
example/​package.json Adds minimatch resolutions for TypeScript tooling and Babel module resolver.

Review effort: Balanced

Comment thread package.json
},
"resolutions": {
"**/@typescript-eslint/typescript-estree/minimatch": "^11.0.1",
"react-native-builder-bob/glob/minimatch": "^11.0.1"
@luca-gr4vy luca-gr4vy closed this Nov 11, 2026
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