CVE-2026-141514
LowCVSS 3.7Exploitation Probability (EPSS)
Low risk49th percentile - higher than 49% of all known CVEs
Summary
minimatch versions 11.0.6 through 11.0.10 have a module-global matcher cache that can be poisoned when an options object contains an own proto property. This can alter behavior of later calls for the same pattern, such as forcing case-insensitive matching, affecting allow or deny decisions. The issue is fixed in version 11.0.10.
Risk Assessment
Poisoning the shared cache may lead to incorrect security decisions (allow/deny) in Node.js applications using minimatch for pattern matching. The risk is scoped to the shared cache but can affect access control.
Recommendation
Update minimatch to version 11.0.10 or later. Avoid passing untrusted options objects to minimatch().
Other vulnerabilities in minimatch
See all- CVE-2026-140008High
In minimatch 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 position, causing quadratic compilation time for long wildcard-only path patterns even when only one row exists. An attacker who can supply uncached patterns to new Minimatch or another compiling entry point can block the JavaScript event loop and cause a denial of service.
- CVE-2026-140007Medium
In minimatch 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.
- CVE-2026-140006Medium
In minimatch 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, 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.
- CVE-2026-118764Medium
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Starting in 7.0.0 and prior to 11.0.1, src/index.ts implements firstPhasePreProcess() so that, at optimizationLevel 2 or higher, it repeatedly expands attacker-controlled **/.. pattern segments inside a fixpoint loop, allowing generated globParts entries to be processed and expanded again. secondPhasePreProcess() then compares the expanded entries pairwise, so a short malicious glob can cause excessive CPU and memory consumption during pattern compilation. This issue is fixed in version 11.0.1.
- CVE-2026-27904High
minimatch before versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4 produces regexps with nested unbounded quantifiers for nested *() extglobs, causing catastrophic backtracking in V8. A 12-byte pattern *(*(*(a|b))) with an 18-byte non-matching input stalls minimatch() for over 7 seconds.
- CVE-2026-27903High
A vulnerability in the minimatch library causes unbounded recursive backtracking in matchOne() when a glob pattern contains multiple non-adjacent ** (GLOBSTAR) segments and the input path does not match. The time complexity is O(C(n, k)), so a crafted pattern (e.g., 56 bytes) can stall the Node.js event loop for several seconds. The issue is fixed in versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.3.
- CVE-2026-26996High
minimatch versions 10.2.0 and below are vulnerable to ReDoS when a glob pattern contains many consecutive * wildcards followed by a literal character absent from the test string. Each * compiles to a separate regex group, and on match failure V8's engine backtracks exponentially with O(4^N) complexity.
Original NVD description (English source)
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.6 until 11.0.10, minimatch's module-global matcher cache can be poisoned when an options object passed to minimatch() contains an own proto property. In src/index.ts, optionsKey() assigns that property no cache-key weight while copyOptions() copies it into a normal object, changing the copy's prototype, and cachedMinimatch() stores the resulting matcher in the cache slot used by default options. A later independent caller matching the same pattern without options can therefore receive attacker-influenced behavior, such as case-insensitive matching, which can alter security-relevant allow or deny decisions until the entry is evicted. The effect is scoped to the shared matcher cache and does not modify Object.prototype. This issue is fixed in version 11.0.10.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

