Allocation of Resources Without Limits or Throttling Affecting brace-expansion package, versions <1.1.16>=2.0.0 <2.1.2>=3.0.0 <5.0.8


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.34% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BRACEEXPANSION-18313044
  • published26 Jul 2026
  • disclosed23 Jul 2026
  • creditbnbdr

Introduced: 23 Jul 2026

NewCVE-2026-14257  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade brace-expansion to version 1.1.16, 2.1.2, 5.0.8 or higher.

Overview

brace-expansion is a Brace expansion as known from sh/bash

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the expand() function and its recursive expand_ helper, which cap the number of results via the max option but do not bound the length of each result string. An attacker can crash the Node process with a fatal, uncatchable out-of-memory error by supplying a pattern that chains many brace groups, such as {a,b} repeated, keeping the result count under max while each result grows with the group count so total output scales unbounded. Exploitation requires the application to pass untrusted input to expand(), directly or transitively through minimatch or glob brace patterns.

Workaround

This vulnerability can be avoided by passing small explicit max and maxLength options to expand(), bounding both the number of results and the length of each so total output stays limited.

References

CVSS Base Scores

version 4.0
version 3.1