The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to…
Historical advisory recorded 25 Oct 2026 10:17:33 UTC. Read the latest advisory.
nvd · CVE-2026-45149
PublishedThe brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When 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. This vulnerability is fixed in 5.0.6.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2026-45149
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-400
Original publisher date fields
published: 2026-05-29T20:16:25.550
lastModified: 2026-07-22T06:10:00.170
1 source CPE criteria · context only
- cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON