#35916·backstage

Snyk vulnerability [SNYK-JS-BRACEEXPANSION-20244948]

Author: github-actions[bot]Created Sep 29, 2026Updated Sep 30, 2026
Labelssnyk-vulnerabilityhelp wanted

Affecting Packages/Plugins

Overview

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

Affected versions of this package are vulnerable to Uncontrolled Recursion via uncontrolled recursion in expand_ when processing deeply nested brace patterns. An attacker can supply approximately 6 KB of deeply nested braces (e.g., { repeated ~3,200 times followed by a,b and the matching } characters) to exhaust the native call stack and crash the process with a RangeError: Maximum call stack size exceeded. The max and maxLength bounds do not prevent this because the stack is exhausted during recursive descent into sub-expansions, before the result set grows.

Remediation

Upgrade brace-expansion to version 1.1.20, 2.1.6, 3.0.8, 5.0.11 or higher.

References