{"id":"CVE-2026-14257","published":"2026-07-23T12:54:23Z","modified":"2026-07-23T14:44:41Z","title":"brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash","vendor":"juliangruber","product":"brace-expansion","tier":"tail","description":{"text":"brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.","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.00841,"percentile":0.55222,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://www.npmjs.com/package/brace-expansion","tags":[]},{"url":"https://github.com/juliangruber/brace-expansion","tags":[]},{"url":"https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.04},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"juliangruber","affectedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":["<= 5.0.7"]}],"capec":[{"id":"CAPEC-469","name":"HTTP DoS"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-23T14:44:31.208878Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=4.0.0, <5.0.8",">=3.0.0, <3.0.3",">=2.0.0, <2.1.3","<1.1.17"],"patched":["5.0.8","3.0.3","2.1.3","1.1.17"],"from":["GHSA-mh99-v99m-4gvg"],"provenance":"source"}],"summary":{"text":"The brace-expansion npm package, through version 5.0.7, has a denial-of-service flaw in its expand() function, which bounds the number of results but not the length of each result string, so memory use can grow until the process crashes with an uncatchable out-of-memory error. An attacker who can supply a string to an application that passes it to brace-expansion.expand(), directly or indirectly through minimatch or glob brace patterns, needs only network access and no authentication or user interaction to crash the process with a payload of roughly 7.5 KB.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:10Z"},"euvd":{"id":"EUVD-2026-48285","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-juliangruber-brace-expansion-cve-2026-45149","parents":[{"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-45149","to":"CVE-2026-14257","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/index.ts"],"commits":["https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d","https://github.com/juliangruber/brace-expansion/commit/c0b095bdc52bc4c36dc88deddbadabc49f8371e5"],"basis":"shared function","functions":["expand_"]}]}],"children":[{"from":"CVE-2026-14257","to":"CVE-2026-69152","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"The fix for CVE-2026-14257 is bypassed by the vulnerability.","from":"CVE.org","in":"CVE-2026-69152"},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.8","toFixed":"5.0.9","daysApart":11},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.17","toFixed":"1.1.18","daysApart":11}]},{"from":"CVE-2026-14257","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/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d"],"basis":"shared function","functions":["expand","expandTop","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"]}]}],"packageHistory":[{"cve":"CVE-2026-33750","published":"2026-03-27","fixed":"5.0.5","kev":false,"link":{"from":"CVE-2026-33750","to":"CVE-2026-14257","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"3.0.2","toFixed":"3.0.3","daysApart":118},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5","https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d","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},{"cve":"CVE-2026-102278","published":"2026-09-28","fixed":"5.0.11","kev":false}],"package":"npm:brace-expansion"}}