CVE-2026-140008
HIGH 8.7CVSS 4.0minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pattern row while iterating each wildcard position, causing quadratic compilation time for long wildcard-only path patterns even when only one row exists. An attacker who can supply uncached patterns to new Minimatch or another compiling entry point can block the JavaScript event loop and cause a denial of service, with brace-generated rows further multiplying the work. This issue is fixed in version 11.0.7.
- Published
- 30 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-407
- Also known as
- GHSA-cf2h-pxjq-68xw
- Sources
- NVDJSONCVE ListJSONOSV GHSA-cf2h-pxjq-68xwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | GitHub_M | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | isaacs | minimatch | = >= 11.0.0, < 11.0.7 | |
| OSV | npm | minimatch | >= 11.0.0, < 11.0.7 | 11.0.7 |
References
- https://github.com/isaacs/minimatch/commit/8a26917fa43e2b865dd6017f7acf6ac2fd5190cd · x_refsource_MISC, WEB
- https://github.com/isaacs/minimatch/security/advisories/GHSA-cf2h-pxjq-68xw · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-140008 · ADVISORY
- https://github.com/isaacs/minimatch · PACKAGE
History
- 1 Dec 2026 18:39 UTC · OSV: first stored (published 1 Dec 2026)
- 1 Dec 2026 15:31 UTC · NVD: updated (other details)
- 1 Dec 2026 15:05 UTC · CVE List: updated (other details)
- 30 Nov 2026 22:30 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 21:58 UTC · CVE List: first stored (published 30 Nov 2026)