Home › Vulnerabilities › isaacs
minimatch Batch Fixes Three Flaws: Quadratic Compile-Time DoS, Cache Memory Exhaustion, and Escape Bypass
Three minimatch vulnerabilities published by NVD on 2026-11-30 cover slow pattern compilation, unbounded memory retention through the top-level cache, and incorrect output from minimatch.escape(). The records state that fixes are in versions 11.0.7 and 11.0.8.
What to look into
- 3 vulnerabilities in isaacs minimatch: 1 high, 2 medium (CVSS up to 8.7).
- None of them is known to be exploited yet.
- Start with CVE-2026-140008 (8.7 high): minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pat… An attacker without an account can exploit this over the network, without any user action.
- 2 of 3 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
- Kinds of flaws: Inefficient Algorithmic Complexity; Uncontrolled Resource Consumption; Improper Encoding or Escaping of Output.
Key points
- CVE-2026-140008 (HIGH, CVSS 8.7) allows event-loop blocking through slow pattern compilation in versions 11.0.0 to 11.0.7.
- CVE-2026-140007 (MEDIUM, CVSS 5.9) can exhaust memory through the top-level minimatch() cache in versions 11.0.3 to 11.0.8.
- CVE-2026-140006 (MEDIUM, CVSS 5.4) means minimatch.escape() output may match unintended strings, in versions 7.4.0 to 11.0.8.
- The records say the fixes are in versions 11.0.7 and 11.0.8.
The NVD published three vulnerabilities in isaacs minimatch, a utility that converts glob expressions into JavaScript RegExp objects. The records describe three different kinds of flaw, all of which affect applications that accept glob patterns from untrusted sources.
Slow compilation
CVE-2026-140008 is rated HIGH (CVSS 8.7), the most severe of the batch. According to the record, from 11.0.0 until 11.0.7 the mergeRows() function in src/index.ts copies and joins an entire pattern row again for each wildcard position. For long wildcard-only path patterns this makes compile time grow quadratically, even with a single row. Brace-generated rows reportedly multiply the work further. An attacker who can supply uncached patterns to new Minimatch or another compiling entry point could block the JavaScript event loop. The record says this is fixed in version 11.0.7.
Memory retention through the cache
CVE-2026-140007 is rated MEDIUM (CVSS 5.9). From 11.0.3 until 11.0.8, the top-level minimatch() function stores compiled objects in a module-level Map limited to 256 entries. The limit counts entries but not how much expansion each one holds, so entries can retain up to 100,000 expanded rows each. Applications that accept many unique attacker-controlled patterns could run out of memory and terminate. The record states that direct construction with new Minimatch() is not affected by this cache behavior. The fix is in version 11.0.8.
Escaping that does not produce literal matches
CVE-2026-140006 is rated MEDIUM (CVSS 5.4). From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that match more than the supplied literal text. The record lists several cases: a leading ! can become negation, a leading # can become a comment, and braceExpand() can collapse an escaped backslash and reactivate a following magic character. The record ties the brace case to specific brace-expansion releases (2.x or 5.0.4 through 5.0.12). It also notes that windowsPathsNoEscape combined with magicalBraces can leave braces active. The record warns that applications using escaped attacker-controlled text as an authorization, filtering, or path-selection pattern may match unintended strings. The fix is in version 11.0.8.
Who is affected
The sources do not describe any known exploitation of these issues. They also do not list deployment scenarios beyond the conditions quoted above.
What to do
- Upgrade minimatch to version 11.0.8, which the records state fixes CVE-2026-140007 and CVE-2026-140006 (and includes the fix for CVE-2026-140008).
- If you cannot upgrade to 11.0.8 right away, upgrade to at least 11.0.7 for the compile-time issue described in CVE-2026-140008; the records do not give a workaround for the other two.
- Review any code that passes untrusted glob patterns to minimatch() or uses minimatch.escape() output for authorization or filtering.
The 3 vulnerabilities
- CVE-2026-140008 8.7 minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pattern row while iterating each wildcard p…
- CVE-2026-140007 5.9 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 en…
- CVE-2026-140006 5.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 ! ca…
Frequently asked questions
How many isaacs minimatch vulnerabilities were published on November 30, 2026?
3 vulnerabilities: 1 high, 2 medium, with CVSS scores up to 8.7.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-140008 (CVSS 8.7): minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pat…