{"id":"CVE-2026-27903","published":"2026-02-26T01:06:32Z","modified":"2026-02-26T19:20:51Z","title":"minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments","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.3, `matchOne()` performs unbounded recursive backtracking when a glob pattern contains multiple non-adjacent `**` (GLOBSTAR) segments and the input path does not match. The time complexity is O(C(n, k)) -- binomial -- where `n` is the number of path segments and `k` is the number of globstars. With k=11 and n=30, a call to the default `minimatch()` API stalls for roughly 5 seconds. With k=13, it exceeds 15 seconds. No memoization or call budget exists to bound this behavior. Any application where an attacker can influence the glob pattern passed to `minimatch()` is vulnerable. The realistic attack surface includes build tools and task runners that accept user-supplied glob arguments (ESLint, Webpack, Rollup config), multi-tenant systems where one tenant configures glob-based rules that run in a shared process, admin or developer interfaces that accept ignore-rule or filter configuration as globs, and CI/CD pipelines that evaluate user-submitted config files containing glob patterns. An attacker who can place a crafted pattern into any of these paths can stall the Node.js event loop for tens of seconds per invocation. The pattern is 56 bytes for a 5-second stall and does not require authentication in contexts where pattern input is part of the feature. 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.3 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.00784,"percentile":0.52544,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-7r86-cg39-jmmj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.51},{"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.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T19:20:40.009551Z","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.3"],"patched":["10.2.3","9.0.7","8.0.6","7.4.8","6.2.2","5.1.8","4.2.5","3.1.3"],"from":["GHSA-7r86-cg39-jmmj"],"provenance":"source"}],"summary":{"text":"The minimatch library (isaacs/minimatch), which converts glob expressions into JavaScript RegExp objects, contains an algorithmic complexity flaw in its matchOne() function: when a glob pattern includes multiple non-adjacent (GLOBSTAR) segments. An attacker who can supply the glob pattern passed to minimatch() (for example through build tools, multi-tenant rule configuration, or admin interfaces that accept glob filters) can stall the Node.js event loop for seconds per call, with no authentication required where pattern input is part of the feature.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:21Z"},"euvd":{"id":"EUVD-2026-8801","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-minimatch-cve-2026-26996","parents":[{"from":"CVE-2026-26996","to":"CVE-2026-27903","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/index.ts"],"commits":["https://github.com/isaacs/minimatch/commit/2e111f3a79abc00fa73110195de2c0f2351904f5","https://github.com/isaacs/minimatch/commit/0bf499aa45f5059b56809cc3b75ff3eafeb8d748"],"basis":"shared function","functions":["Minimatch"]},{"kind":"similar","provenance":"machine","score":0.39,"basis":"same product + description similarity"}]}],"children":[{"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"}]},{"from":"CVE-2026-27903","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/0bf499aa45f5059b56809cc3b75ff3eafeb8d748"],"basis":"shared function","functions":["Minimatch","MinimatchOptions"]}]}],"packageHistory":[{"cve":"CVE-2016-10540","published":"2018-05-31","fixed":"3.0.2","kev":false},{"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"}}