Intel

AIKIDO-2026-189646

brace-expansion is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-q2hr-2g5m-vwhr Published Yesterday

53

Medium Risk

This Affects:

JSbrace-expansion
0.0.1 - 1.1.20
Fixed in 1.1.21
2.0.0 - 2.1.6
Fixed in 2.1.7
3.0.0 - 3.0.8
Fixed in 3.0.9
4.0.0 - 5.0.11
Fixed in 5.0.12
Are you affected? Scan for Free

TL;DR

The brace expansion parser rewrites and rescans its input whenever it matches a trailing {group},b} pattern, restarting the scan without limiting how many times this can happen. A crafted input such as {a} followed by many closing braces triggers thousands of rescans over a string that grows on each pass, driving CPU use to quadratic growth and blocking the event loop for tens of seconds on a single call. The patch adds a maxRewrites bound that caps the number of rescans.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

brace-expansion is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.1.20, 2.0.0 - 2.1.6, 3.0.0 - 3.0.8 and 4.0.0 - 5.0.11.

How to fix this

Upgrade the brace-expansion library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform