p PatchFirst

CVE-2026-102276

CVE-2026-102276 · brace-expansion: DoS via uncontrolled recursion in parseCommaParts causing stack exhaustion

This page contains facts from public vulnerability sources. Check the original advisory before updating.

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10, crafted brace patterns can exhaust the native stack in parseCommaParts because parseCommaParts recursively processes the remainder once per brace group and uses push.apply to pass every element of a very large comma-part array as a function argument. Patterns containing many comma-separated brace groups trigger the recursive path, while the large array triggers the argument-array path without deep recursion. These paths cause recursive and argument-array native stack exhaustion before max or maxLength can limit output, potentially terminating the Node.js process in a process-terminating denial of service. This issue is fixed in versions 1.1.19, 2.1.5, 3.0.7, and 5.0.10.

CVSS 7.5 · High · EPSS 0.5% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • brace-expansion

    Versions
    • >= 4.0.0, < 5.0.10: Affected
    • >= 3.0.0, < 3.0.7: Affected
    • >= 2.0.0, < 2.1.5: Affected
    • < 1.1.19: Affected

    No fix published

  • node-brace-expansion Debian:12

    Versions
    • 2.0.1+~1.1.0-1
    • 2.0.1+~1.1.0-2
    • 2.0.1-2
    • 2.0.3+~1.1.2-1
    • 2.0.3+~1.1.2-2
    • 2.0.3+~1.1.2-3
    • 2.1.4+~1.1.2-1
    • 2.1.7+~1.1.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Debian:13

    Versions
    • 2.0.1+~1.1.0-2
    • 2.0.3+~1.1.2-1
    • 2.0.3+~1.1.2-2
    • 2.0.3+~1.1.2-3
    • 2.1.4+~1.1.2-1
    • 2.1.7+~1.1.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Debian:14

    Versions
    • 2.0.1+~1.1.0-2
    • 2.0.3+~1.1.2-1
    • 2.0.3+~1.1.2-2
    • 2.0.3+~1.1.2-3
    • 2.1.4+~1.1.2-1
    Affected ranges
    • ECOSYSTEM: < 2.1.7+~1.1.2-1

    Update to 2.1.7+~1.1.2-1

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 4.0.0, < 5.0.10

    Update to 5.0.10

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 3.0.0, < 3.0.7

    Update to 3.0.7

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 2.0.0, < 2.1.5

    Update to 2.1.5

  • brace-expansion npm

    Affected ranges
    • SEMVER: < 1.1.19

    Update to 1.1.19

  • node-brace-expansion Ubuntu:18.04:LTS

    Versions
    • 1.1.8-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Ubuntu:20.04:LTS

    Versions
    • 1.1.8-1
    • 1.1.11-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Ubuntu:22.04:LTS

    Versions
    • 2.0.0-1
    • 2.0.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Ubuntu:24.04:LTS

    Versions
    • 2.0.1-2
    • 2.0.1+~1.1.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Ubuntu:26.10

    Versions
    • 2.0.1+~1.1.0-2
    • 2.0.3+~1.1.2-2
    • 2.0.3+~1.1.2-3
    • 2.1.4+~1.1.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-brace-expansion Ubuntu:26.04:LTS

    Versions
    • 2.0.1+~1.1.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →