7.5
HIGH CVSS 3.1
CVE-2026-14257
brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash
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.

INFO

Published Date :

July 23, 2026, 2:17 p.m.

Last Modified :

July 23, 2026, 2:17 p.m.

Remotely Exploit :

Yes !

Source :

22e2d327-25fe-45d7-9f0c-dcd23b7108df
Affected Products

The following products are affected by CVE-2026-14257 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Juliangruber brace-expansion
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 22e2d327-25fe-45d7-9f0c-dcd23b7108df
CVSS 3.1 HIGH MITRE-CVE
Solution
Update brace-expansion to 5.0.8 or later to fix memory exhaustion denial of service.
  • Update brace-expansion to version 5.0.8.
  • Configure the maxLength option if using older versions.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-14257.

URL Resource
https://github.com/juliangruber/brace-expansion
https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5
https://www.npmjs.com/package/brace-expansion
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-14257 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-14257 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-14257 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 22e2d327-25fe-45d7-9f0c-dcd23b7108df

    Jul. 23, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'juliangruber', 'product': 'brace-expansion', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '5.0.7'}], 'platforms': ['Linux', 'macOS', 'Windows'], 'packageName': 'brace-expansion', 'collectionURL': 'https://www.npmjs.com/package/brace-expansion', 'defaultStatus': 'unaffected'}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-400
    Added CWE CWE-770
    Added Reference https://github.com/juliangruber/brace-expansion
    Added Reference https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5
    Added Reference https://www.npmjs.com/package/brace-expansion
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.