Home / micromatch / braces / CVE-2024-4068
CVE-2024-4068: is it exploited, and which versions of micromatch braces are affected and fixed?
CVE-2024-4068 is an excessive Platform Resource Consumption within a Loop vulnerability in micromatch braces. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: braces before 3.0.3 (GitHub advisory GHSA-grv7-fg5c-xmjg). Fixed in 3.0.3 (GitHub advisory GHSA-grv7-fg5c-xmjg). Severity: High (7.5, CVSS 3.1, from Checkmarx).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:29 UTC.
What is CVE-2024-4068?
Memory Exhaustion in braces
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.
From the CVE record by Checkmarx, last updated November 6, 2024, 13:10 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| micromatch | braces | not stated |
As the CVE record by Checkmarx states it, last updated November 6, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | braces | < 3.0.3 | 3.0.3 | GHSA-grv7-fg5c-xmjg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 10, 2024. Summary: Uncontrolled resource consumption in braces.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| jonschlinkert | braces | before 3.0.3 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:01 UTC.
How severe is CVE-2024-4068?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | Checkmarx |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-4068 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, May 13, 2024)
- EPSS
- 1.47% probability of exploitation activity in the next 30 days, percentile 74.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-1050 Excessive Platform Resource Consumption within a Loop
- CWE-400 Uncontrolled Resource Consumption
How do I fix it? (from the CVE record)
Update to version 3.0.3 to mitigate the issue.
Where are the vendor advisories and references?
- https://github.com/micromatch/braces/issues/35
- https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
- https://github.com/micromatch/braces/pull/37
- https://github.com/micromatch/braces/pull/40
- https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
Who found and reported it?
- Mário Teixeira, Checkmarx Research Group (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 23, 2024
- Published
- May 13, 2024, 10:06 UTC
- CVE record updated
- November 6, 2024, 13:10 UTC by Checkmarx
- NVD
- Analyzed, last modified June 17, 2026, 08:01 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect braces?
- Sep 18, 2026CVE-2026-93687 micromatch braces: uncontrolled recursion
Questions about CVE-2024-4068
Is CVE-2024-4068 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 1.47% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of micromatch braces are affected by CVE-2024-4068?
braces before 3.0.3, per the GitHub advisory GHSA-grv7-fg5c-xmjg. The tables above give every range the sources list.
Which version fixes CVE-2024-4068?
3.0.3, per the GitHub advisory GHSA-grv7-fg5c-xmjg. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-4068?
High (7.5, CVSS 3.1, from Checkmarx). The severity table above shows each score with its source.
Where is the official record of CVE-2024-4068?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.