Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-4068: The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, whic

55
This week
HIGH 7.5REMOTEUPGRADE

CVE-2024-4068 is a high-severity flaw (CVSS 7.5) affecting braces. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.

Why this priority

  • High severity
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance1.5% (top 26%)
CISA exploited listNo
WeaknessCWE-1050, CWE-400
Published2024-05-14
Last modified2026-06-17
Publisher (CNA): Checkmarx · Vendor: jonschlinkert

Share: LinkedIn · X · Reddit

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

Am I affected?

Timeline

jonschlinkert braces UPGRADE
Affected: < 3.0.3
Fixed in: 3.0.3
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls braces
2. UPGRADE to 3.0.3
npm install braces@">=3.0.3"
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-2024-4068?

braces: upgrade to 3.0.3. Exact commands for each OS are on this page.

Is CVE-2024-4068 being exploited?

CVE-2024-4068 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-2024-4068 affect?

CVE-2024-4068 affects braces. Severity is high (CVSS 7.5). The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will ent

How urgent is CVE-2024-4068?

Priority 55/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action

Software pages

npm packages vulnerabilities

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.