{"id":"CVE-2026-102278","published":"2026-09-28T20:57:09Z","modified":"2026-10-01T15:02:44Z","title":"brace-expansion: DoS via uncontrolled recursion on nested brace groups causing stack exhaustion","vendor":"juliangruber","product":"brace-expansion","tier":"tail","description":{"text":"The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.20, 2.1.6, 3.0.8, and 5.0.11, deeply nested brace groups cause expand_() to recurse once per nesting level at comma-member and single-set expansion sites, exhausting the native stack before output limits can apply and potentially terminating the Node.js process. expand_ performs uncontrolled recursion for nested brace alternatives and single-part sets. deeply nested brace groups supplied as an untrusted pattern. expand_ is affected. expand is affected. Comma members is affected. Single set is affected. native stack exhaustion during nested sub-expansion. process-terminating denial of service. This issue is fixed in versions 1.1.20, 2.1.6, 3.0.8, and 5.0.11.","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.0063,"percentile":0.44621,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-qhr7-859c-m2p7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/de84f144e9816f30e25fc8179e2e1249ab6df0db","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"juliangruber","affectedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":[">= 4.0.0, < 5.0.11",">= 3.0.0, < 3.0.8",">= 2.0.0, < 2.1.6","< 1.1.20"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-01T15:02:35.975978Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=4.0.0, <5.0.11",">=3.0.0, <3.0.8",">=2.0.0, <2.1.6","<1.1.20"],"patched":["5.0.11","3.0.8","2.1.6","1.1.20"],"from":["GHSA-qhr7-859c-m2p7"],"provenance":"source"}],"summary":{"text":"The brace-expansion library, which generates strings from patterns with common prefixes and suffixes, contains an uncontrolled recursion flaw in its expand_() routine that affects nested brace groups before versions 1.1.20, 2.1.6, 3.0.8, and 5.0.11. An attacker who can supply a deeply nested brace pattern as untrusted input can exhaust the native stack and potentially terminate the Node.js process, with no authentication, user interaction, or special configuration required beyond the ability to submit that pattern.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:24Z"},"euvd":{"id":"EUVD-2026-88555","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-juliangruber-brace-expansion-cve-2026-45149","parents":[{"from":"CVE-2026-45149","to":"CVE-2026-102278","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c","https://github.com/juliangruber/brace-expansion/commit/c0b095bdc52bc4c36dc88deddbadabc49f8371e5"],"basis":"shared function","functions":["expand_"]}]},{"from":"CVE-2026-13149","to":"CVE-2026-102278","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c","https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265"],"basis":"shared function","functions":["expand_"]}]},{"from":"CVE-2026-14257","to":"CVE-2026-102278","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c","https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d"],"basis":"shared function","functions":["expand","expandTop","expand_","parseCommaParts"]}]},{"from":"CVE-2026-69152","to":"CVE-2026-102278","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d","https://github.com/juliangruber/brace-expansion/commit/1e30c930238d7162802d88a94189182def178dac"],"basis":"shared function","functions":["expandTop"]}]}],"children":[{"from":"CVE-2026-102278","to":"CVE-2026-102277","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.11","toFixed":"5.0.12","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.20","toFixed":"1.1.21","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96","https://github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22","https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c"],"basis":"shared function","functions":["expand","expandTop","expand_"]}]}],"packageHistory":[{"cve":"CVE-2026-14257","published":"2026-07-23","fixed":"5.0.8","kev":false},{"cve":"CVE-2026-69152","published":"2026-08-03","fixed":"5.0.9","kev":false},{"cve":"CVE-2026-102276","published":"2026-09-28","fixed":"5.0.10","kev":false,"link":{"from":"CVE-2026-102276","to":"CVE-2026-102278","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.10","toFixed":"5.0.11","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.19","toFixed":"1.1.20","daysApart":0},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/0bcbfc0a5928c3073d48f42999d1ce4fc1c42fbc","https://github.com/juliangruber/brace-expansion/commit/316359e6019c39b3254c8ba8e25dc586a480652c","https://github.com/juliangruber/brace-expansion/commit/1efee7c397c191da6287a78ec19512476a966a7b","https://github.com/juliangruber/brace-expansion/commit/935d78f32f335b2ff76578e5c5e877d31ae9888c"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.28,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-102278","published":"2026-09-28","fixed":"5.0.11","kev":false},{"cve":"CVE-2026-102277","published":"2026-09-28","fixed":"5.0.12","kev":false}],"package":"npm:brace-expansion"}}