{"id":"GHSA-jxxr-4gwj-5jf2","revision":"2f84a20cfce64b01b0ff1d92142981af","records":[{"revision":"2f84a20cfce64b01b0ff1d92142981af","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jxxr-4gwj-5jf2","aliases":["CVE-2026-45149"],"title":"brace-expansion: Large numeric range defeats documented `max` DoS protection","description":"The `max` option was being applied too late:\n\nWhen expanding a single large numeric range like `{1..10000000}`, the sequence generation loop generates all 10 million intermediate elements before the `max` limit is applied With `max=10`, the output is correctly limited to 10 items, but the process still allocates `~505 MB` and spends `~800ms` building the full intermediate array.\n\n### Workaround\n\nEnsure the string to be expanded doesn't contain more values than the desired `max` item count.","state":0,"publishedAt":"2026-05-18T16:22:01+00:00","modifiedAt":"2026-09-10T03:51:06.3028701+00:00","affected":[{"ecosystem":"npm","name":"brace-expansion","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.0.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-jxxr-4gwj-5jf2","https://nvd.nist.gov/vuln/detail/CVE-2026-45149","https://github.com/juliangruber/brace-expansion/commit/c0b095bdc52bc4c36dc88deddbadabc49f8371e5","https://github.com/juliangruber/brace-expansion"],"sourceUrl":"https://github.com/advisories/GHSA-jxxr-4gwj-5jf2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jxxr-4gwj-5jf2","identifiers":["GHSA-jxxr-4gwj-5jf2","CVE-2026-45149"]},"retained":false,"historicalAffected":[]}],"coverage":[]}