Repository navigation
fix(deps): force minimatch >= 11.0.9 to resolve security alert - #943
Closed
davidhu2000 wants to merge 1 commit into
Closed
davidhu2000 wants to merge 1 commit into
davidhu2000 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Closing: not using resolutions. Waiting for jest / test-exclude to move to minimatch 11. Alert is dev-only. |
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.
Why
Dependabot alert #274 flags minimatch
>= 7.0.0, < 11.0.1(DoS via globparts amplification). Dependabot can't open a fix PR for it: no patched 9.x or 10.x release exists, and the parents still declare old ranges even at their latest versions:glob@13.0.x(jest, react-docgen-typescript plugin) →minimatch@^10.2.2test-exclude@7.0.2(babel-plugin-istanbul) →glob@^10→minimatch@^9.0.4, andtest-exclude@8.0.0still needsminimatch@^10.2.2@typescript-eslint/typescript-estree@8.69.0(eslint-plugin-storybook, eslint-plugin-testing-library) →minimatch@^10.2.2This adds yarn
resolutionsthat moveminimatch@^9.0.4andminimatch@^10.2.2to^11.0.9. The lockfile is now left with only11.0.9and3.1.5(from eslint-plugin-react, outside the vulnerable range). All of these packages are dev-only.Proof
Local run with the overridden minimatch:
yarn run lint --max-warnings=0: passedyarn run test --coverage: 116/116 tests passed, coverage collected (this runs the test-exclude/glob path)yarn run build,yarn run build:demo,yarn run build-storybook: all succeeded🤖 Generated with Claude Code