Inefficient Algorithmic Complexity Affecting brace-expansion package, versions <5.0.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th 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 IDSNYK-JS-BRACEEXPANSION-17706650
  • published30 Jun 2026
  • disclosed30 Jun 2026
  • creditUnknown

Introduced: 30 Jun 2026

NewCVE-2026-13149  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade brace-expansion to version 5.0.7 or higher.

Overview

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

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the expand function. An attacker can cause excessive CPU consumption and block the event loop by supplying a specially crafted string containing multiple consecutive non-expanding '{}' brace groups. The max option does not prevent this issue, as it only limits the output size and not the computational workload.

References

CVSS Base Scores

version 4.0
version 3.1