CVE-2026-102278: brace-expansion: DoS via uncontrolled recursion on nested brace groups causing stack exhaustion

Published Sep 28, 2026
·
Updated

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.

Affected Software

1 affected component
npm/brace-expansion<1.1.20, <2.1.6, <3.0.8, <5.0.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade brace-expansion to a version that resolves this vulnerability.

    Fixed in 1.1.20
  2. Upgrade

    Upgrade brace-expansion to a version that resolves this vulnerability.

    Fixed in 2.1.6
  3. Upgrade

    Upgrade brace-expansion to a version that resolves this vulnerability.

    Fixed in 3.0.8
  4. Upgrade

    Upgrade brace-expansion to a version that resolves this vulnerability.

    Fixed in 5.0.11

Event History

Sep 28, 2026
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using npm/brace-expansion are exposed when they pass untrusted patterns into brace expansion. The vulnerable paths include nested brace alternatives, comma members, and single-part sets processed by expand_ or expand.

2

What must an attacker provide to trigger the denial of service?

An attacker needs to supply a deeply nested brace-group pattern to a reachable brace-expansion call. No privileges or user interaction are required according to the supplied severity vector.

3

Does limiting expansion output prevent this issue?

No. The recursion occurs once per nesting level during nested sub-expansion and can exhaust the native stack before output limits apply.

4

What versions resolve the issue?

Upgrade to brace-expansion 1.1.20, 2.1.6, 3.0.8, or 5.0.11, as applicable to the version line in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203