Live threats

All CVEs / Jonschlinkert

CVE-2024-4068Jonschlinkert Braces

High 7.5 No auth needed

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
Weakness (CWE)
CWE-1050, CWE-400
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Braces.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
jonschlinkertbraces< 3.0.3

Official sources

References

Links published by the sources. Open them with care.