Security mailing lists by PureSourceCode

CVE-2026-45149

HIGH 7.5CVSS 3.1

brace-expansion: Large numeric range defeats documented `max` DoS protection

The 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.

Published
29 May 2026
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-400
Also known as
GHSA-jxxr-4gwj-5jf2
Sources
NVDJSONOSV GHSA-jxxr-4gwj-5jf2JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD juliangruber brace-expansion
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
>= 5.0.0, < 5.0.6 5.0.6
OSV npm brace-expansion >= 5.0.0, < 5.0.6 5.0.6

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 29 May 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.