CVE-2024-4068: The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, whic
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.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
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
Related CVEs
- CVE-2018-1109 MEDIUM 5.3 UPGRADE A vulnerability was found in Braces versions 2.2.0 and above, prior to 2.3.1