Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-45149: The brace-expansion library generates arbitrary strings containing a common prefix and suffix

28
Routine
MEDIUM 6.5UPGRADE

CVE-2026-45149 is a medium-severity flaw (CVSS 6.5) affecting brace-expansion. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 ~80

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.5 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 77%)
CISA exploited listNo
WeaknessCWE-400
Published2026-05-29
Last modified2026-07-22
Publisher (CNA): GitHub, Inc. · Vendor: juliangruber

Share: LinkedIn · X · Reddit

Last updated 2026-07-22 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

juliangruber brace-expansion UPGRADE
Affected: >= 5.0.0 and < 5.0.6
Fixed in: 5.0.6
Safe to downgrade to: a release before 5.0.0
1. Check installed version
npm ls brace-expansion
2. UPGRADE to 5.0.6
npm install brace-expansion@">=5.0.6"
3. If no update is available yet, DOWNGRADE to a release before 5.0.0
npm view brace-expansion versions npm install brace-expansion@"<5.0.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-45149?

brace-expansion: upgrade to 5.0.6. Exact commands for each OS are on this page.

Is CVE-2026-45149 being exploited?

CVE-2026-45149 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-45149 affect?

CVE-2026-45149 affects brace-expansion. Severity is medium (CVSS 6.5). 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 sequen

How urgent is CVE-2026-45149?

Priority 28/100. No elevated risk signals yet.

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.