Zero Radar
← feed
HighVulnerabilityCVE-2026-118764updated 30 Oct 2026, 23:10 UTC

minimatch glob matching can use excessive CPU and memory from crafted patterns

A specially crafted glob pattern (a file-matching pattern) can make the minimatch library use huge amounts of CPU and memory while it prepares the pattern, which can slow down or crash the app using it.

Fixed in minimatch 11.0.1 · out Official, 2 sources
SeverityHighCVSS 8.7 of 10
Being exploited?UnclearNo reports either way yet
Fix available?Yesminimatch 11.0.1 · since 30 Oct 2026
How sure is this?Official, 2 sourcesBacked by an official source

How the attack works simplified

  1. 1Crafted patternAttacker supplies a short malicious glob
  2. 2Pattern compiledApp passes it to minimatch
  3. 3Expansion loopEntries grow via '**/..' expansion
  4. 4Pairwise comparisonQuadratic checks consume CPU and memory
  5. ResultService slows down or crashes

What happened

In minimatch before 11.0.1, firstPhasePreProcess() expands attacker-controlled '**/..' segments in a fixpoint loop when optimizationLevel is 2 or higher, growing globParts, which secondPhasePreProcess() then compares pairwise, causing excessive CPU and memory use.

Why it is dangerous: Any service that accepts glob patterns from untrusted users can be made to hang or run out of memory with one short pattern, causing denial of service.

Are you affected?

You are affected if your application uses minimatch below 11.0.1 and passes untrusted or user-supplied glob patterns to it with optimizationLevel 2 or higher.

Package / productAffected versionsFixed in
minimatch · npm< 11.0.111.0.1

What to do

  1. Update minimatch to 11.0.1 or later
  2. Check your dependency tree (for example with npm ls minimatch) for older copies pulled in by other packages
  3. Avoid passing untrusted glob patterns to minimatch until the update is applied

Timeline

  1. 29 Oct 2026, 17:18 UTC
    Publicly disclosed
  2. 29 Oct 2026, 17:18 UTC
    Reported by NVD · NVD
  3. 29 Oct 2026, 17:20 UTC
    Picked up by Zero Radar
  4. 30 Oct 2026, 23:10 UTC
    GitHub Advisory reported on it · GitHub Advisory
  5. 30 Oct 2026, 23:10 UTC
    Fixed version published: minimatch 11.0.1 · GitHub Advisory

Sources 2 reports, oldest first

Official vendor, government CERT or advisory database

Technical details

ID
CVE-2026-118764 · GHSA-g3hv-75wg-m249
CVSS
8.7 / 10
Disclosed
29 Oct 2026, 17:18 UTC
On Zero Radar
29 Oct 2026, 17:20 UTC (2 min after disclosure)
Last change
30 Oct 2026, 23:10 UTC

The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works

minimatch glob matching can use excessive CPU and memory from crafted patterns · Zero Radar