Home › CVE › JavaScript
CVE-2026-140007 — isaacs minimatch
One of 3 isaacs minimatch vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 5.9
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-400: Uncontrolled Resource Consumption
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| isaacs minimatch | >= 11.0.3, < 11.0.8 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- isaacs minimatch
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140007?
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. Weakness type: Uncontrolled Resource Consumption (CWE-400).
How severe is CVE-2026-140007?
CVE-2026-140007 has a CVSS 3.1 base score of 5.9 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-140007 being exploited?
Not as far as is known: CVE-2026-140007 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026.
Which versions are affected by CVE-2026-140007?
isaacs minimatch >= 11.0.3, < 11.0.8.
How do I fix CVE-2026-140007?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.