Skip to content

fix(deps): update minimatch to 11 for GHSA-g3hv-75wg-m249 and GHSA-c859-jr93-m5j4 - #6242

Merged
edusperoni merged 1 commit into
mainfrom
chore/npm-audit-deps
Dec 4, 2026
Merged

edusperoni merged 1 commit into
mainfrom
chore/npm-audit-deps

Conversation

@edusperoni

@edusperoni edusperoni commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

PR Checklist

What is the current behavior?

npm audit --omit=dev reports 13 vulnerabilities (12 moderate, 1 high) for the runtime dependencies, in both the repo lockfile and a fresh install of the published manifest. The CLI pins minimatch 10.2.6, which is affected by GHSA-g3hv-75wg-m249 (globparts amplification DoS) and GHSA-c859-jr93-m5j4 (escape() mismatch). There is no 10.x backport.

What is the new behavior?

This is the bottom of a two-PR stack. It contains only the fixes that keep Node 20 support:

  • minimatch 10.2.6 → 11.0.10. It is the first patched release, it still supports Node 20, and it is a hybrid CJS/ESM package with the same API. v11 replaces the regex-based matcher with a new engine, so matching edge cases may differ. The full suite passes unchanged.
  • The lockfile refresh picks up @ts-morph/common 0.29.1, which moves its own minimatch to ^11.

What this does not fix. A fresh consumer install still reports 13. The remaining advisories need tar 8, pacote 22 and @npmcli/arborist 10, which all require Node ≥ 22.22.2. Those are in the stacked PR #6243. Here, only the CLI's own minimatch usage moves off the vulnerable range. The copies that @npmcli/arborist 9, ignore-walk and similar packages pull in stay on 10.x.

Tests: npm test passes locally (141 files, 2442 passed, 9 skipped).

…59-jr93-m5j4

minimatch 7.0.0 - 11.0.7 is affected by a globparts amplification DoS
and an escape() mismatch; 11.0.10 is the first patched release and
there is no 10.x backport. minimatch 11 still supports Node 20.

The lockfile refresh also takes @ts-morph/common 0.29.1, which moves
its own minimatch dependency to ^11.
@edusperoni
edusperoni added this pull request to stack #6244 December 4, 2026 03:03
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@edusperoni
edusperoni marked this pull request as ready for review December 4, 2026 03:52
@edusperoni
edusperoni merged commit 56fcff8 into main Dec 4, 2026
11 checks passed
@edusperoni
edusperoni deleted the chore/npm-audit-deps branch December 4, 2026 03:52
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