{"id":"CVE-2026-27904","published":"2026-02-26T01:07:42Z","modified":"2026-02-26T19:21:39Z","title":"minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions","vendor":"isaacs","product":"minimatch","tier":"tail","description":{"text":"minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Prior to version 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4, nested `*()` extglobs produce regexps with nested unbounded quantifiers (e.g. `(?:(?:a|b)*)*`), which exhibit catastrophic backtracking in V8. With a 12-byte pattern `*(*(*(a|b)))` and an 18-byte non-matching input, `minimatch()` stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default `minimatch()` API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects `+()` extglobs equally. Versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4 fix the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00602,"percentile":0.42882,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":8.58},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"minimatch","versions":[">= 10.0.0, < 10.2.3",">= 9.0.0, < 9.0.7",">= 8.0.0, < 8.0.6",">= 7.0.0, < 7.4.8",">= 6.0.0, < 6.2.2",">= 5.0.0, < 5.1.8",">= 4.0.0, < 4.2.5","< 3.1.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T19:21:18.964387Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"minimatch","vulnerableRanges":[">=10.0.0, <10.2.3",">=9.0.0, <9.0.7",">=8.0.0, <8.0.6",">=7.0.0, <7.4.8",">=6.0.0, <6.2.2",">=5.0.0, <5.1.8",">=4.0.0, <4.2.5","<3.1.4"],"patched":["10.2.3","9.0.7","8.0.6","7.4.8","6.2.2","5.1.8","4.2.5","3.1.4"],"from":["GHSA-23c5-xmqv-rm74"],"provenance":"source"}],"summary":{"text":"minimatch, the JavaScript glob-matching utility that converts glob expressions into RegExp objects, mishandles nested *() and +() extglobs, generating regular expressions with nested unbounded quantifiers that suffer catastrophic backtracking in V8. An attacker who can supply a glob pattern and matching input to the default minimatch() API with no special options, requiring no authentication or user interaction, can cause the process to stall for seconds to minutes with a pattern as short as 12 bytes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:53Z"},"euvd":{"id":"EUVD-2026-8802","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-minimatch-cve-2026-26996","parents":[{"from":"CVE-2026-26996","to":"CVE-2026-27904","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:minimatch","fromFixed":"10.2.1","toFixed":"10.2.3","daysApart":6},{"kind":"version-step","provenance":"source","package":"npm:minimatch","fromFixed":"9.0.6","toFixed":"9.0.7","daysApart":6},{"kind":"same-code","provenance":"machine","files":["src/ast.ts","src/index.ts"],"commits":["https://github.com/isaacs/minimatch/commit/2e111f3a79abc00fa73110195de2c0f2351904f5","https://github.com/isaacs/minimatch/commit/11d0df6165d15a955462316b26d52e5efae06fce"],"basis":"shared function","functions":["AST"]},{"kind":"similar","provenance":"machine","score":0.39,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-27903","to":"CVE-2026-27904","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:minimatch","fromFixed":"3.1.3","toFixed":"3.1.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/isaacs/minimatch/commit/0bf499aa45f5059b56809cc3b75ff3eafeb8d748","https://github.com/isaacs/minimatch/commit/11d0df6165d15a955462316b26d52e5efae06fce"],"basis":"shared function","functions":["MinimatchOptions"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + description similarity"}]}],"children":[{"from":"CVE-2026-27904","to":"CVE-2026-118764","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/isaacs/minimatch/commit/297b6c1a01f2410b3ba1ebed14ba222d0c3c1033","https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8","https://github.com/isaacs/minimatch/commit/11d0df6165d15a955462316b26d52e5efae06fce"],"basis":"shared function","functions":["MinimatchOptions"]}]}],"packageHistory":[{"cve":"CVE-2022-3517","published":"2022-10-17","fixed":"3.0.5","kev":false},{"cve":"CVE-2026-26996","published":"2026-02-20","fixed":"10.2.1","kev":false},{"cve":"CVE-2026-27903","published":"2026-02-26","fixed":"10.2.3","kev":false},{"cve":"CVE-2026-27904","published":"2026-02-26","fixed":"10.2.3","kev":false},{"cve":"CVE-2026-118764","published":"2026-10-29","fixed":"11.0.1","kev":false}],"package":"npm:minimatch"}}