CVE-2024-4068Jonschlinkert Braces
High 7.5 No auth needed
Follow: this CVE · Jonschlinkert · Jonschlinkert Braces We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- May 14, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Braces.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | braces |
< 3.0.3 |
3.0.3 |
npm install braces@3.0.3 |
Per OSV / GitHub Advisories (GHSA-grv7-fg5c-xmjg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| jonschlinkert | braces | < 3.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- devhub.checkmarx.com Third Party Advisory
- github.com Patch
- github.com Issue Tracking
- github.com Exploit Issue Tracking Patch
- github.com Issue Tracking Patch