{"id":"CVE-2026-118764","kind":"vulnerability","aliases":["CVE-2026-118764"],"related":[],"title":"minimatch: crafted glob pattern exhausts CPU and memory during compilation","description":"minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. 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.","summary":"minimatch, a JavaScript library that turns glob patterns into regular expressions, can be made to use excessive CPU and memory by a short malicious glob when optimizationLevel is 2 or higher. An attacker who controls the pattern can cause a denial of service in any process that compiles it.","severity":"high","cvss":8.7,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["build-tooling","minimatch","node","npm","package"],"not_affected_if":["default-config","fixed-patterns"],"how_to_check":"- Find minimatch in your lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`) and read the resolved version.\n- Check whether your code passes untrusted input as a pattern and sets `optimizationLevel` to `2` or higher.\n- Run `npm ls minimatch` to see every installed copy, including nested ones.","fix":"- minimatch: `11.0.1`","status":"open","published_at":"2026-10-29T17:18:07+00:00","first_seen_at":"2026-10-29T17:26:17+00:00","triaged_at":"2026-10-29T17:27:48+00:00","updated_at":"2026-10-29T17:27:48+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-29T17:27:48Z","model":"claude-haiku-5-5","output":{"fix":"- minimatch: `11.0.1`","reach":"unknown","title":"minimatch: crafted glob pattern exhausts CPU and memory during compilation","impact":"low","summary":"minimatch, a JavaScript library that turns glob patterns into regular expressions, can be made to use excessive CPU and memory by a short malicious glob when optimizationLevel is 2 or higher. An attacker who controls the pattern can cause a denial of service in any process that compiles it.","audience":"developers","category":"package","nicknames":[],"who_cares":["npm","minimatch","node","build-tooling"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"Process stalls or crashes from CPU and memory exhaustion","analyst_note":"","how_to_check":"- Find minimatch in your lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`) and read the resolved version.\n- Check whether your code passes untrusted input as a pattern and sets `optimizationLevel` to `2` or higher.\n- Run `npm ls minimatch` to see every installed copy, including nested ones.","plain_action":"","needs_analyst":false,"not_affected_if":["fixed-patterns","default-config"],"who_is_affected":"Applications that pass attacker-influenced glob patterns to minimatch with optimizationLevel 2 or higher are exposed, and build tools or servers that match user-supplied paths are the likely case. Projects that use only fixed, developer-written patterns, or the default optimization level, can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000713,"input_tokens":4229,"output_tokens":581,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-118764':13A,16A '-2026':12A,15A '/..':105C '11.0.1':88C,150C '2':52B,96C 'allow':112C 'attack':56B,103C 'attacker-control':102C 'build':18B 'build-tool':17B 'caus':62B,135C 'compar':124C 'compil':10A,71B,143C 'consumpt':140C 'control':58B,104C 'convert':79C 'cpu':6A,41B,137C 'craft':2A 'cve':11A,14A 'denial':64B 'entri':115C,127C 'excess':40B,136C 'exhaust':5A 'expand':101C,120C,126C 'express':34B,81C 'firstphasepreprocess':91C 'fix':147C 'fixpoint':110C 'generat':113C 'glob':3A,30B,48B,80C,133C 'globpart':114C 'higher':54B,98C 'implement':90C 'insid':108C 'issu':145C 'javascript':26B,83C 'librari':27B 'loop':111C 'made':37B 'malici':47B,132C 'match':76C 'memori':8A,43B,139C 'minim':75C 'minimatch':1A,20B,24B,72C 'node':21B 'npm':22B 'object':85C 'optimizationlevel':50B,95C 'packag':23B 'pairwis':128C 'pattern':4A,31B,60B,106C,142C 'prior':86C 'process':69B,118C 'regexp':84C 'regular':33B 'repeat':100C 'secondphasepreprocess':122C 'segment':107C 'servic':66B 'short':46B,131C 'src/index.ts':89C 'tool':19B 'turn':29B 'use':39B 'util':77C 'version':149C","nicknames":[],"mitigations":[],"who_affected":"Applications that pass attacker-influenced glob patterns to minimatch with optimizationLevel 2 or higher are exposed, and build tools or servers that match user-supplied paths are the likely case. Projects that use only fixed, developer-written patterns, or the default optimization level, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"first_public_at":"2026-10-29T17:18:07+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-118764","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118764","severity":null,"published_at":"2026-10-29T17:18:07+00:00","modified_at":"2026-10-29T17:18:07+00:00","first_seen_at":"2026-10-29T17:26:17+00:00","fetched_at":"2026-10-29T17:26:17+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}