{"id":"CVE-2026-33750","published":"2026-03-27T14:04:52Z","modified":"2026-03-27T14:48:06Z","title":"brace-expansion: Zero-step sequence causes process hang and memory 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 versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0073,"percentile":0.50231,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-f886-m6hf-6m8v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/juliangruber/brace-expansion/issues/98","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/pull/95","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/pull/96","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/pull/97","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/commit/b9cacd9e55e7a1fa588fe4b7bb1159d52f1d902a","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L107-L113","tags":["x_refsource_MISC"]},{"url":"https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L184","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":10.05},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"juliangruber","affectedVersions":[{"vendor":"juliangruber","product":"brace-expansion","versions":[">= 4.0.0, < 5.0.5",">= 3.0.0, < 3.0.2",">= 2.0.0, < 2.0.3","< 1.1.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-27T14:47:58.490818Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"brace-expansion","vulnerableRanges":[">=4.0.0, <5.0.5",">=3.0.0, <3.0.2",">=2.0.0, <2.0.3","<1.1.13"],"patched":["5.0.5","3.0.2","2.0.3","1.1.13"],"from":["GHSA-f886-m6hf-6m8v"],"provenance":"source"}],"summary":{"text":"The brace-expansion library, a JavaScript package by juliangruber, mishandles brace patterns that use a zero step value (for example {1..2..0}), causing its sequence generation loop to run indefinitely. An attacker who can get a crafted brace pattern passed to expand() can make the process hang for seconds and exhaust memory, and this requires only network access to the affected application with no authentication, though a user interaction is needed as indicated by the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:41Z"},"euvd":{"id":"EUVD-2026-16620","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-18077","published":"2018-01-27","fixed":"1.1.7","kev":false},{"cve":"CVE-2025-5889","published":"2025-06-09","fixed":"4.0.1","kev":false,"link":{"from":"CVE-2025-5889","to":"CVE-2026-33750","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"1.1.12","toFixed":"1.1.13","daysApart":291},{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":291},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/juliangruber/brace-expansion/commit/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5","https://github.com/juliangruber/brace-expansion/commit/0b6a9781e18e9d2769bb2931f4856d1360243ed2","https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5","https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2"],"basis":"shared file"}]}},{"cve":"CVE-2026-33750","published":"2026-03-27","fixed":"5.0.5","kev":false},{"cve":"CVE-2026-45149","published":"2026-05-29","fixed":"5.0.6","kev":false,"link":{"from":"CVE-2026-33750","to":"CVE-2026-45149","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:brace-expansion","fromFixed":"5.0.5","toFixed":"5.0.6","daysApart":63}]}},{"cve":"CVE-2026-13149","published":"2026-06-30","fixed":"5.0.7","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-14257","published":"2026-07-23","fixed":"5.0.8","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"}]}}],"package":"npm:brace-expansion"}}