Quadratic compile time in minimatch for long wildcard patterns
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.
Summary
minimatch from 11.0.0 before 11.0.7 has a flaw in its mergeRows() function, which repeatedly copies and joins an entire pattern row for each wildcard position, causing quadratic compile time for long wildcard-only path patterns (CWE-407). An unauthenticated remote 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, and brace-generated rows multiply the work.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| isaacs | minimatch | 11.0.0 to before 11.0.7 | 11.0.7 | Patch available | CNA |
- minimatch Vendorisaacs Affected 11.0.0 to before 11.0.7 Fixed in 11.0.7 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:* | — | — | Minimatch Project |
- cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:* Versions — — ·Minimatch Project
Remediation
Update minimatch to version 11.0.7, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA minimatch (isaacs) Fixed in 11.0.7
Timeline
- 2026-11-30 Threatist record created from CVE-2026-140008
References
More isaacs vulnerabilities
- TI-2026-42687 node-tar: Decompression/parse DoS via unlimited input CVSS 4.0CRITICAL 9.2
- TI-2026-42688 node-tar: Negative tar entry size causes infinite loop in archive replace CVSS 4.0HIGH 8.7
- TI-2026-51656 Uncontrolled resource consumption in isaacs node-tar CVSS 3.1HIGH 7.5
- TI-2026-42686 node-tar: Process crash via PAX numeric path type confusion CVSS 3.1HIGH 7.5
- TI-2026-24357 node-tar Symlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
- TI-2026-23372 node-tar: Hardlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences