CVE-2026-140008
8.7high
minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| isaacs minimatch | >= 11.0.0, < 11.0.7 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-140008 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-140008 changed 2026-12-01 | Public domain |