Repository navigation
fix(deps): update minimatch to 11 for GHSA-g3hv-75wg-m249 and GHSA-c859-jr93-m5j4 - #6242
Merged
Merged
Conversation
…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.
|
Caution Review failedThe pull request is closed.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
I have read the CLA and I hereby sign the CLA).What is the current behavior?
npm audit --omit=devreports 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 pinsminimatch10.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:
minimatch10.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.@ts-morph/common0.29.1, which moves its ownminimatchto^11.What this does not fix. A fresh consumer install still reports 13. The remaining advisories need
tar8,pacote22 and@npmcli/arborist10, which all require Node ≥ 22.22.2. Those are in the stacked PR #6243. Here, only the CLI's ownminimatchusage moves off the vulnerable range. The copies that@npmcli/arborist9,ignore-walkand similar packages pull in stay on 10.x.Tests:
npm testpasses locally (141 files, 2442 passed, 9 skipped).