Uncontrolled Recursion Affecting org.webjars.npm:brace-expansion package, versions [,5.0.12)


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.35% (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 IDSNYK-JAVA-ORGWEBJARSNPM-20244953
  • published29 Sept 2026
  • disclosed28 Sept 2026
  • creditbaeseungwon1010, Jeremy Katz

Introduced: 28 Sep 2026

NewCVE-2026-102276  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:brace-expansion to version 5.0.12 or higher.

Overview

org.webjars.npm:brace-expansion is a WebJar for brace-expansion.

Affected versions of this package are vulnerable to Uncontrolled Recursion via two distinct stack-exhaustion paths in parseCommaParts. In the first, the function recurses on the remainder of the string once per brace group, so a chain of approximately 7,000 groups (~29 KB of input) exhausts the native call stack and throws a RangeError. In the second, push.apply passes one argument per element, meaning a single large comma-separated array inside a brace group overflows the stack at a recursion depth of exactly one, requiring roughly 125,000 comma-separated elements. Neither the max nor maxLength options can bound either path because the crash occurs during parsing, before any expansion takes place.

CVSS Base Scores

version 4.0
version 3.1