{"id":"CVE-2026-13149","published":"2026-06-30T08:30:34Z","modified":"2026-07-08T11:38:35Z","title":"brace-expansion through 5.0.6 is vulnerable to denial of service","vendor":"juliangruber","product":"brace-expansion","tier":"tail","description":{"text":"brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00364,"percentile":0.3101,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","tags":[]},{"url":"https://www.npmjs.com/package/brace-expansion","tags":[]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.2},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"juliangruber","affectedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":["<= 5.0.6"]}],"capec":[{"id":"CAPEC-469","name":"HTTP DoS"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-30T12:43:12.568372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=3.0.0, <5.0.7","<1.1.16",">=2.0.0, <2.1.2"],"patched":["5.0.7","1.1.16","2.1.2"],"from":["GHSA-3jxr-9vmj-r5cp"],"provenance":"source"}],"summary":{"text":"The brace-expansion npm package, through version 5.0.6, has an algorithmic-complexity flaw in its expand() function, which takes exponential time as the number of consecutive non-expanding '{}' brace groups grows. An attacker who can supply a crafted string to expand(), either directly or through a dependency that passes input into it, needs no authentication or user interaction and can cause heavy CPU consumption and event-loop blocking, leading to denial of service; the max option does not prevent this.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:57Z"},"euvd":{"id":"EUVD-2026-40269","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-juliangruber-brace-expansion-cve-2026-45149","parents":[{"from":"CVE-2026-45149","to":"CVE-2026-13149","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.6","toFixed":"5.0.7","daysApart":32},{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265","https://github.com/juliangruber/brace-expansion/commit/c0b095bdc52bc4c36dc88deddbadabc49f8371e5"],"basis":"shared function","functions":["expand_"]}]}],"children":[{"from":"CVE-2026-13149","to":"CVE-2026-14257","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.7","toFixed":"5.0.8","daysApart":23},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.16","toFixed":"1.1.17","daysApart":23},{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265","https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d"],"basis":"shared function","functions":["expand_","gte"]}]},{"from":"CVE-2026-13149","to":"CVE-2026-102277","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"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/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265"],"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-13149","to":"CVE-2026-69152","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d","https://github.com/juliangruber/brace-expansion/commit/1e30c930238d7162802d88a94189182def178dac"],"basis":"shared function","functions":["gte"]}]}],"packageHistory":[{"cve":"CVE-2025-5889","published":"2025-06-09","fixed":"4.0.1","kev":false},{"cve":"CVE-2026-33750","published":"2026-03-27","fixed":"5.0.5","kev":false,"link":{"from":"CVE-2026-33750","to":"CVE-2026-13149","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.13","toFixed":"1.1.16","daysApart":95},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"2.0.3","toFixed":"2.1.2","daysApart":95},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754","https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265","https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5","https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2"],"basis":"shared file"}]}},{"cve":"CVE-2026-45149","published":"2026-05-29","fixed":"5.0.6","kev":false},{"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},{"cve":"CVE-2026-102276","published":"2026-09-28","fixed":"5.0.10","kev":false}],"package":"npm:brace-expansion"}}