Intel

AIKIDO-2026-872981

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

CVE-2026-69152Published Jul 31, 2026
July 31, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The expand() function limits the size of the accumulator where results are combined but leaves the intermediate arrays built before that step unbounded. Comma alternatives are concatenated into one array with no cumulative result or character limit, and padded numeric sequence generation ignores the length limit while materializing wide elements. A small crafted string passed to expand(), directly or through a glob or brace-pattern matching library, exhausts process memory with an uncatchable out-of-memory crash or blocks the event loop for minutes. The fix bounds both intermediate arrays as they are built and truncates output once the result count or character limits are reached.

How do I fix this?

Upgrade the brace-expansion library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass user-controlled input to expand(), directly or transitively through a glob or brace-pattern matching library.

Versions

0.0.1 - 1.1.17

Fixed in 1.1.18

2.0.0 - 2.1.3

Fixed in 2.1.4

3.0.0 - 3.0.5

Fixed in 3.0.6

4.0.0 - 5.0.8

Fixed in 5.0.9

Background info

brace-expansion is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.1.17, 2.0.0 - 2.1.3, 3.0.0 - 3.0.5 and 4.0.0 - 5.0.8.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea