Isaacs minimatch
minimatch: 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 11.0.0, < 11.0.7
Fixed in 11.0.7
Mitigation
Upgrade minimatch to 11.0.7 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 2.1 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140008 (created 3 Dec 2026, found by us: 3 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140008 | 3 Dec 2026 +2.1 d | 3 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.