{"id":"CVE-2026-118764","aliases":["CVE-2026-118764","GHSA-g3hv-75wg-m249"],"related":[],"kind":"vulnerability","state":"published","title":"minimatch: potential denial of service via globparts amplification","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.\n\nresearcher: Reid Downing (b1nv0id)\nfiles: \n\n- src/index.ts: 690-770\n- src/index.ts: 780-796\n\nissue:\ninput-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.\n\nthe **/../ transformation clones a globparts entry and appends the clone to the same globparts array:\n```\nparts.splice(gs, 1)\nconst other = parts.slice(0)\nother[gs] = '**'\nglobParts.push(other)\n```\nthis occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.\n\nthe expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons:\n```\nfor (let i = 0; i < globParts.length - 1; i++) {\n  for (let j = i + 1; j < globParts.length; j++) {\n    this.partsMatch(...)\n  }\n}\n```\nan attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.","format":"markdown","source":"ghsa"}],"published":"2026-10-29T17:07:11.357Z","modified":"2026-11-04T17:01:25.850Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-405"],"affected":[{"ranges":[{"version":">= 7.0.0, < 11.0.1","status":"affected"}],"vendor":"isaacs","product":"minimatch","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"11.0.1"}],"ecosystem":"npm","package":"minimatch","purl":"pkg:npm/minimatch","source":"ghsa"}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/isaacs/minimatch/commit/297b6c1a01f2410b3ba1ebed14ba222d0c3c1033","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/isaacs/minimatch/commit/fd0b3ab9cbc5bf1aff1c99f1f46e413c2b3340da","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/isaacs/minimatch/releases/tag/v11.0.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118764","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/isaacs/minimatch","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-03T16:05:44.478Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-118764","url":"https://www.cve.org/CVERecord?id=CVE-2026-118764","licence":"CVE Terms of Use","modified":"2026-11-03T16:06:09.084Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g3hv-75wg-m249","url":"https://github.com/advisories/GHSA-g3hv-75wg-m249","licence":"CC-BY-4.0","modified":"2026-11-04T17:01:25.850Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-118764","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118764","licence":"Public domain","modified":"2026-11-03T17:17:59.437Z"}],"updatedAt":"2026-11-25T22:59:47.813Z","epss":{"score":0.00409,"percentile":0.37233,"date":"2026-12-01T12:00:22.000Z"}}