CVE-2026-140007: medium-severity vulnerability in isaacs minimatch
minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 5.9epss 0.5%
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
isaacs · minimatchRelated CVEs — isaacs minimatch
In the same product, most dangerous first.
CVE-2026-140008HIGHminimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)EPSS 0.8%CVE-2026-27903HIGHminimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segmentsEPSS 0.6%CVE-2026-141514LOWminimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher CacheEPSS 0.6%CVE-2026-26996HIGHminimatch has a ReDoS via repeated wildcards with non-matching literal in patternEPSS 0.6%CVE-2026-27904HIGHminimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressionsEPSS 0.5%CVE-2026-140006MEDIUMminimatch: minimatch.escape() output matches more or less than the literal inputEPSS 0.4%