CVE-2026-140006: medium-severity vulnerability in isaacs minimatch
minimatch: minimatch.escape() output matches more or less than the literal input
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.4epss 0.4%
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! can become negation, leading # can become a comment, braceExpand() can collapse an escaped backslash and reactivate a following magic character when an expanded brace group is present and the installed brace-expansion release has the affected behavior (2.x or 5.0.4 through 5.0.12), and windowsPathsNoEscape combined with magicalBraces can leave braces active. Applications that escape attacker-controlled text and then use the result as an authorization, filtering, or path-selection pattern may match unintended strings or fail to match the intended literal. This issue is fixed in version 11.0.8.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
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-140007MEDIUMminimatch: Global pattern cache retains large expansions, enabling memory exhaustionEPSS 0.5%