-
Notifications
You must be signed in to change notification settings - Fork 533
[GHSA-3ppc-4f35-3m26] minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern #7007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| { | ||||||
| "schema_version": "1.4.0", | ||||||
| "id": "GHSA-3ppc-4f35-3m26", | ||||||
| "modified": "2026-02-20T16:52:14Z", | ||||||
| "modified": "2026-02-20T16:52:16Z", | ||||||
| "published": "2026-02-18T22:38:11Z", | ||||||
| "aliases": [ | ||||||
| "CVE-2026-26996" | ||||||
|
|
@@ -33,6 +33,139 @@ | |||||
| ] | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "3.1.3" | ||||||
| } | ||||||
| ] | ||||||
|
Comment on lines
+46
to
+52
|
||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
|
Comment on lines
+56
to
+60
|
||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "4.2.4" | ||||||
| } | ||||||
| ] | ||||||
|
Comment on lines
+64
to
+71
|
||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
|
Comment on lines
+75
to
+79
|
||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "5.1.7" | ||||||
| } | ||||||
| ] | ||||||
|
Comment on lines
+83
to
+90
|
||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "6.2.1" | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "7.4.7" | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "8.0.5" | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "package": { | ||||||
| "ecosystem": "npm", | ||||||
| "name": "minimatch" | ||||||
| }, | ||||||
| "ranges": [ | ||||||
| { | ||||||
| "type": "ECOSYSTEM", | ||||||
| "events": [ | ||||||
| { | ||||||
| "introduced": "0" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| }, | ||||||
| { | ||||||
| "fixed": "9.0.6" | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
| ], | ||||||
| "references": [ | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
affectedarray repeats identicalpackageobjects forminimatchmany times, which is error-prone and hard to audit (and contributed to the overlapping-range issue above). If the schema allows, prefer a singleaffectedentry for the package with multipleranges(or multipleeventssequences) to capture each fixed line, so the version logic is centralized and easier to review.