Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Vulnerabilities CVE-2026-14257

CVE-2026-14257

High
Open
TLP:CLEAR

brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash

AI Analysis

· 2 weeks ago

Executive Summary

The CVE-2026-14257 vulnerability poses a significant threat due to its high severity and relatively low attack complexity, making it likely to be exploited. Its impact could be substantial, leading to denial-of-service conditions in affected applications. Given its severity and potential for exploitation, it is crucial for organizations to address this vulnerability promptly.

Enhanced Description

The fix for this vulnerability, as implemented in version 5.0.8 of brace-expansion, introduces a maxLength option (defaulting to 4,000,000) that effectively bounds the accumulated output and intermediate arrays. This addition serves as a critical mitigation measure, preventing the uncontrolled memory growth that previously led to out-of-memory errors. It underscores the importance of validating and bounding input and output lengths in functions dealing with potentially expansive operations like brace expansion, to prevent similar vulnerabilities from arising in the future.

Exploitation Context

Realistic exploitation scenarios for this vulnerability include attacks on web applications or services that utilize the vulnerable brace-expansion library, where an attacker could submit crafted input designed to trigger the DoS condition. The motivation for attackers to exploit this vulnerability would likely be to disrupt service availability or to use the vulnerability as part of more complex attacks, leveraging the DoS as a smokescreen or distraction.

Patch Priority

High
Due to the high severity of the vulnerability and its relatively low attack complexity, coupled with the significant potential impact of successful exploitation, prioritizing the update to a patched version of brace-expansion is crucial.

Recommended Actions

  • Update brace-expansion to version 5.0.8 or later, which includes the fix for the vulnerability
  • Review application code for potential usage of brace-expansion and ensure inputs are properly validated and sanitized
  • Implement additional monitoring and logging to detect potential exploitation attempts
  • Consider applying temporary mitigations or workarounds if updating is not immediately feasible

Suggested Tags

DoS
denial-of-service
out-of-memory
memory-exhaustion
brace-expansion

Confidence Assessment

The confidence in the severity rating of this vulnerability is high, given its demonstrated potential to cause significant denial-of-service conditions with relatively minimal input. The likelihood of exploitation is also considered high due to the low attack complexity and the potential for attackers to leverage this vulnerability in various scenarios.

Description

brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.

Details

CVSS Score
7.5
EPSS Score
0.34%

26.7th percentile

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Confidence
90%
Published
Jul 23, 2026
Last Modified
Jul 23, 2026
No notes yet. Click "Add Note" to create the first analysis note.
No opinions yet. Be the first to assess this intelligence.
Leaving Threaticon

This link opens an external site that isn't part of the platform.