Security Resilience

CVE-2024-4068

DoS in Jonschlinkert Braces ≤ 3.0.3

Public PoCDoS
Published
14 May 2024
Modified
31 December 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.015 74th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-4068 is a high-severity Excessive Platform Resource Consumption within a Loop (CWE-1050) vulnerability in Jonschlinkert Braces. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 26% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SC-5 (Denial-of-service Protection) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.003 Application Exhaustion Flood Impact
Adversaries may target resource intensive features of applications to cause a denial of service (DoS), denying availability to those applications.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-4067Same vendor: Jonschlinkert
CVE-2026-33671Same vendor: Jonschlinkert
CVE-2025-57328Same vendor: Jonschlinkert
CVE-2026-33672Same vendor: Jonschlinkert
CVE-2025-48866Shared CWE-1050
CVE-2025-67419Shared CWE-1050
CVE-2026-4634Shared CWE-1050
CVE-2026-22263Shared CWE-1050
CVE-2023-1390Shared CWE-1050
CVE-2025-47947Shared CWE-1050

Affected Assets

jonschlinkert
braces
≤ 3.0.3

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 2 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V2.4.1
  • V7.6.2
  • V15.4.3

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SA-11 developer testing can discover loops that consume platform resources before deployment.

SC-5 directly limits the effects of resource-exhaustion events that constitute uncontrolled consumption.

SC-6 directly protects resource availability by enforcing allocation limits that bound consumption from faulty loops.

AC-10 caps concurrent sessions, reducing blast radius when a loop consumes session or connection resources.

Process isolation confines resource consumption to separate domains, reducing blast radius without stopping the root flaw.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

DE.CM-09 partial match
blocks

Runtime monitoring can detect excessive resource use from loops as an adverse event.

PR.IR-04 partial match
blocks

Capacity monitoring and resource management directly limit impact of runaway consumption.

PR.PS-06 partial match
blocks

Secure SDLC practices can prevent introduction of unbounded loops during development.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Monitoring can alert on resource abuse but does not eliminate the coding flaw.

finds

Security testing can discover the defect but does not remove it from production code.

prevents

Training technical teams on secure coding and resource management (per A.6.3's education/training guidance) helps some developers avoid loops that exhaust platform resources, but the practice is fallible and most awareness content targets broader security responsibilities rather than this specific implementation defect, leaving the majority of instances to arise.

prevents

Secure coding standards explicitly forbid resource-consuming loops.

finds

A.8.8's disclosure-based vulnerability management surfaces CWE-1050 only when it appears as a vendor-published CVE/advisory in an inventoried third-party component, leaving most first-party custom loop-resource defects undisclosed.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Oracle Linux 9 (1 partial rule)
  • V-271709 OL 9 must be configured so that all network connections associated with SSH traffic terminate after becoming unresponsive. blocks CWE-1050
RHEL 9 (1 partial rule)
  • V-257995 RHEL 9 must be configured so that all network connections associated with SSH traffic terminate after becoming unresponsive. blocks CWE-1050

References