Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-140008

CVE-2026-140008: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-140008 is a denial-of-service vulnerability in the minimatch npm package caused by quadratic compilation time when processing long wildcard-only glob patterns. The flaw exists in versions 11.0.0 through 11.0.6 and was introduced by the mergeRows() function added in commit 2e1d896. It was disclosed on November 30, 2026, with a fix released in version 11.0.7. The vulnerability carries a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, Feedly).

Technical details

The root cause is an inefficient algorithm (CWE-407) in the mergeRows() function located in src/index.ts (approximately lines 813–852). For each wildcard position in a pattern row, the function copies and joins the entire row to construct a Map key, resulting in O(n²) compilation time relative to the number of path parts. For example, a pattern of 8,000 wildcard parts (*) joined by / takes approximately 805 ms to compile, and extrapolating to the 64 KB pattern limit (~32,000 parts) would block the event loop for roughly 13 seconds. Brace expansion that generates multiple rows further multiplies the cost. The fix in version 11.0.7 replaces the full-row join with an incremental prefix/suffix hashing scheme via a new #mergeKeys() method, reducing complexity to linear (GitHub Advisory, Fix Commit).

Impact

Successful exploitation allows an unauthenticated remote attacker to block the Node.js JavaScript event loop by supplying crafted glob patterns with many wildcard path segments, causing a complete denial of service for any application that passes uncached user-controlled patterns to new Minimatch() or other compiling entry points. There is no confidentiality or integrity impact — the vulnerability is limited to availability. Applications using brace expansion in patterns face amplified impact due to the multiplicative effect on row count (GitHub Advisory, Feedly).

Exploitability

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is 0.0, reflecting a very low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires only the ability to supply uncached glob patterns to an affected application — no authentication or special privileges are needed — making it straightforward to trigger if such an input path exists.

Exploitation steps

  1. Identify a target: Find a Node.js application using minimatch versions 11.0.0–11.0.6 that accepts user-controlled input passed directly or indirectly to new Minimatch(pattern) or equivalent compiling entry points without caching or input validation.
  2. Craft a malicious pattern: Construct a glob pattern consisting of a large number of wildcard-only path segments, e.g., Array(8000).fill('*').join('/'), or amplify the effect using brace expansion such as {w0,w1,...,w15}/*/*/*/... with thousands of wildcard parts.
  3. Submit the pattern: Send the crafted pattern as input to the vulnerable application endpoint (e.g., via an HTTP request parameter, API call, or file upload field that feeds into glob matching logic).
  4. Trigger quadratic compilation: The mergeRows() function processes the pattern, performing O(n²) work that blocks the JavaScript event loop for several seconds to over 13 seconds per request at maximum pattern size.
  5. Achieve denial of service: Repeated submissions of such patterns exhaust the event loop, rendering the application unresponsive to legitimate requests (GitHub Advisory).

Indicators of compromise

  • Logs: Application logs showing unusually long response times or timeouts on endpoints that perform glob/file matching operations; Node.js process hang or unresponsiveness correlated with specific request patterns.
  • Network: Repeated HTTP requests containing long strings of * characters separated by /, or large brace-expanded glob expressions in query parameters or request bodies.
  • Process: Node.js process CPU usage spiking to 100% for extended periods (several seconds) without corresponding I/O activity, particularly during pattern compilation phases.

Mitigation and workarounds

The primary remediation is to upgrade minimatch to version 11.0.7 or later, which replaces the quadratic mergeRows() key-building logic with a linear incremental hashing approach (Fix Commit). If immediate patching is not feasible, mitigations include: validating and limiting the length or complexity of user-supplied glob patterns before passing them to Minimatch; caching compiled patterns so repeated identical inputs do not re-trigger compilation; and implementing timeouts around pattern compilation operations to prevent event loop blocking (Feedly).

Community reactions

The vulnerability was reported by researcher icguner and disclosed via GitHub Security Advisories on November 10, 2026. A Bluesky post from a CVE tracking account noted the disclosure shortly after publication. No significant vendor statements beyond the GitHub advisory or notable media coverage have been identified at this time (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-140097CRITICAL9.1
  • JavaScript logoJavaScript
  • vite
NoYesNov 30, 2026
CVE-2026-140010HIGH8.7
  • JavaScript logoJavaScript
  • html-minifier
NoYesNov 30, 2026
CVE-2026-140008HIGH8.7
  • JavaScript logoJavaScript
  • minimatch
NoYesNov 30, 2026
CVE-2026-140102HIGH7.5
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoNoNov 30, 2026
CVE-2026-140103MEDIUM5.4
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoYesNov 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management