{"id":"CVE-2026-118764","aliases":["GHSA-g3hv-75wg-m249"],"url":"https://o3.security/vulnerability/CVE-2026-118764","summary":"minimatch: potential denial of service via globparts amplification","details":"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.","published":"2026-10-29T17:07:11.357Z","modified":"2026-10-31T02:47:27.975961226Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"minimatch","fixedVersion":"11.0.1"}],"fix":{"url":"https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8","label":"isaacs/minimatch@77a0f5c"},"references":[{"type":"WEB","url":"https://github.com/isaacs/minimatch/releases/tag/v11.0.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118764.json"},{"type":"ADVISORY","url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118764"},{"type":"FIX","url":"https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8"},{"type":"PACKAGE","url":"https://github.com/isaacs/minimatch"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-31T02:47:27.975961226Z"}}