{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-27904","id":"CVE-2026-27904","title":"minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions","description":"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, `m","descriptionLong":"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.","published":"2026-02-26T01:07:42.693Z","updated":"2026-10-28T02:30:54.771518593Z","reserved":"2026-02-24T15:19:29.718Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["isaacs minimatch"],"affectedProducts":[{"vendor":"isaacs","product":"minimatch","defaultStatus":null,"versions":[{"version":">= 10.0.0, < 10.2.3","status":"affected"},{"version":">= 9.0.0, < 9.0.7","status":"affected"},{"version":">= 8.0.0, < 8.0.6","status":"affected"},{"version":">= 7.0.0, < 7.4.8","status":"affected"},{"version":">= 6.0.0, < 6.2.2","status":"affected"},{"version":">= 5.0.0, < 5.1.8","status":"affected"},{"version":">= 4.0.0, < 4.2.5","status":"affected"},{"version":"< 3.1.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"minimatch","purl":"pkg:npm/minimatch","ranges":[">=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"],"fixed":["10.2.3","9.0.7","8.0.6","7.4.8","6.2.2","5.1.8","4.2.5","3.1.4"],"advisory":"GHSA-23c5-xmqv-rm74"}],"cwes":["CWE-1333"],"aliases":["GHSA-23c5-xmqv-rm74"],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27904.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27904","tags":["advisory"]},{"url":"https://github.com/isaacs/minimatch/commit/11d0df6165d15a955462316b26d52e5efae06fce","tags":["web"]},{"url":"https://github.com/isaacs/minimatch","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00525,"epssPercentile":0.45277,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-27904","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27904","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-27904","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-23c5-xmqv-rm74","ok":true,"note":"GHSA-23c5-xmqv-rm74"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-27904","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}