CVE-2026-140007
5.9medium
minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.46% (higher than 41% 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.3 until 11.0.8, the top-level minimatch() function stores compiled Minimatch objects in a module-level 256-entry Map whose entries are bounded by count but not by retained expansion weight below the braceExpandMax ceiling. An application that accepts unique attacker-controlled glob patterns can retain objects containing up to 100,000 expanded rows per entry, causing memory exhaustion and process termination; direct construction with new Minimatch() is not affected by this cache behavior. This issue is fixed in version 11.0.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| isaacs minimatch | >= 11.0.3, < 11.0.8 | CVE List |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-140007 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-140007 changed 2026-11-30 | Public domain |