{"id":"CVE-2026-102276","published":"2026-09-28T20:50:59Z","modified":"2026-09-29T13:38:29Z","title":"brace-expansion: DoS via uncontrolled recursion in parseCommaParts 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.19, 2.1.5, 3.0.7, and 5.0.10, crafted brace patterns can exhaust the native stack in parseCommaParts because parseCommaParts recursively processes the remainder once per brace group and uses push.apply to pass every element of a very large comma-part array as a function argument. Patterns containing many comma-separated brace groups trigger the recursive path, while the large array triggers the argument-array path without deep recursion. These paths cause recursive and argument-array native stack exhaustion before max or maxLength can limit output, potentially terminating the Node.js process in a process-terminating denial of service. This issue is fixed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.","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.44589,"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-6j4f-fj2g-mc7p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/0bcbfc0a5928c3073d48f42999d1ce4fc1c42fbc","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/316359e6019c39b3254c8ba8e25dc586a480652c","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/5171e681c0922b7ae8bfaf9a331e309107be6edc","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/6735c94873ca570bcdd6a0690033bdd3126379d3","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.10",">= 3.0.0, < 3.0.7",">= 2.0.0, < 2.1.5","< 1.1.19"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-29T13:37:06.086529Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=4.0.0, <5.0.10",">=3.0.0, <3.0.7",">=2.0.0, <2.1.5","<1.1.19"],"patched":["5.0.10","3.0.7","2.1.5","1.1.19"],"from":["GHSA-6j4f-fj2g-mc7p"],"provenance":"source"}],"summary":{"text":"The brace-expansion library, which generates strings from brace patterns with a common prefix and suffix, contains a flaw in its parseCommaParts function, where recursive processing and large argument arrays can exhaust the native stack. An attacker who can supply a crafted brace pattern to an application using this library, with no authentication or user interaction required, can crash the Node.js process and cause a denial of service; the condition is that the pattern contains many comma-separated brace groups or a very large comma-part array.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:25Z"},"euvd":{"id":"EUVD-2026-88550","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-13149","published":"2026-06-30","fixed":"5.0.7","kev":false},{"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,"link":{"from":"CVE-2026-69152","to":"CVE-2026-102276","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.9","toFixed":"5.0.10","daysApart":56},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.18","toFixed":"1.1.19","daysApart":56},{"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/139d015104e71433ad52a41d19467c48ecbb2c7d","https://github.com/juliangruber/brace-expansion/commit/1e30c930238d7162802d88a94189182def178dac"],"basis":"shared file"}]}},{"cve":"CVE-2026-102276","published":"2026-09-28","fixed":"5.0.10","kev":false},{"cve":"CVE-2026-102278","published":"2026-09-28","fixed":"5.0.11","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.27,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-102277","published":"2026-09-28","fixed":"5.0.12","kev":false}],"package":"npm:brace-expansion"}}