Shellfeed logo Shellfeed

CVE-2026-102278 · HIGH (CVSS 7.5)

Summary: brace-expansion: DoS via uncontrolled recursion on nested brace groups causing stack exhaustion

EPSS: 0.5% probability of exploitation in the next 30 days (percentile 42.8).

Details

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.20, 2.1.6, 3.0.8, and 5.0.11, deeply nested brace groups cause expand_() to recurse once per nesting level at comma-member and single-set expansion sites, exhausting the native stack before output limits can apply and potentially terminating the Node.js process. expand_ performs uncontrolled recursion for nested brace alternatives and single-part sets. deeply nested brace groups supplied as an untrusted pattern. expand_ is affected. expand is affected. Comma members is affected. Single set is affected. native stack exhaustion during nested sub-expansion. process-terminating denial of service. This issue is fixed in versions 1.1.20, 2.1.6, 3.0.8, and 5.0.11.

Severity

HIGH (CVSS 7.5) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

  • npm brace-expansion [4.0.0 – 5.0.11]
  • npm brace-expansion [3.0.0 – 3.0.8]
  • npm brace-expansion [2.0.0 – 2.1.6]
  • npm brace-expansion [0 – 1.1.20]
  • GIT github.com/juliangruber/brace-expansion [6a39bdddcf944374b475d99b0e8292d3727c7ebe – 82479277b90f2f86263e946f9ff89689b3734568] [b01a637b0578a7c59acc7d8386f11f8d0710b512 – 8bebb261fd9249c3bac705eea15d06c4ea788d5e] [0b6a022491103b806770bc037654744bef3e63be – 5a5c07b25ea84a899322ebb820336260277cbe90] [0 – c6513ad31e08edb56dc414a629e39cba724b7548]

References