CVE-2026-102277: brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service

Published Sep 28, 2026
·
Updated

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.21, 2.1.7, 3.0.9, and 5.0.12, the expand function handles untrusted {a},b}-shaped patterns with many trailing closing braces by restarting its scan once for each trailing closing brace. The successive full-input rescans with linear working-string growth cause quadratic CPU time and memory pressure that can block the Node.js event loop. The process eventually recovers, making the impact a recoverable CPU denial of service. This issue is fixed in versions 1.1.21, 2.1.7, 3.0.9, and 5.0.12.

Affected Software

1 affected component
npm/brace-expansion<1.1.21, <2.1.7, <3.0.9, <5.0.12

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.21
  2. Upgrade

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

    Fixed in 2.1.7
  3. Upgrade

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

    Fixed in 3.0.9
  4. Upgrade

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

    Fixed in 5.0.12

Event History

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

Frequently Asked Questions

1

When is an application realistically exposed?

An application is exposed if it passes attacker-controlled brace-expansion patterns to the library’s expand function. Patterns shaped like {a},b} with many trailing closing braces can consume substantial CPU and memory and block the Node.js event loop.

2

What does an attacker need to exploit this issue?

The attacker needs the ability to supply a crafted pattern to code that invokes expand. No authentication, user interaction, or special access is indicated by the provided vector.

3

Which versions contain the fix?

The issue is fixed in brace-expansion versions 1.1.21, 2.1.7, 3.0.9, and 5.0.12. Versions before those releases in their respective version lines are affected.

4

What is the operational impact if exploitation occurs?

The crafted input causes quadratic CPU work and memory pressure, which can block the Node.js event loop. The process eventually recovers, so the described impact is a recoverable CPU denial of service.

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