minimatch: minimatch.escape() output matches more or less than the literal input
CVE-2026-140006GHSA-c859-jr93-m5j4Published 30 Nov 2026, 21:31 UTC
Real-world risk
1.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
What to do
Update to a fixed version: 11.0.8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
- Reference tagged as exploit (link)
EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T3: Public proof of concept0.950
- 10 × impact 0.3 × prerequisites 0.6 × threat 0.951.710
- Rounded to one decimal between 0.1 and 101.7
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 2 Dec 2026 CISA SSVC: proof of concept first seen
- 2 Dec 2026 Reference tagged as exploit first seen
- 2 Dec 2026 Risk 1.7 (cvss fallback)
Weakness
CWE-116
References
- https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4exploit, vendor-advisory
- https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67dmisc
- https://nvd.nist.gov/vuln/detail/CVE-2026-140006
- https://github.com/advisories/GHSA-c859-jr93-m5j4
- CVE-2026-140006 on CVE.org