p PatchFirst

CVE-2026-33750

CVE-2026-33750 · brace-expansion: Zero-step sequence causes process hang and memory 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 versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.

CVSS 6.5 · Medium · EPSS 0.4% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • brace-expansion

    Versions
    • >= 4.0.0, < 5.0.5: Affected
    • >= 3.0.0, < 3.0.2: Affected
    • >= 2.0.0, < 2.0.3: Affected
    • < 1.1.13: 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
    Affected ranges
    • ECOSYSTEM: < 2.0.3+~1.1.2-1

    Update to 2.0.3+~1.1.2-1

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 4.0.0, < 5.0.5

    Update to 5.0.5

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 3.0.0, < 3.0.2

    Update to 3.0.2

  • brace-expansion npm

    Affected ranges
    • SEMVER: ≥ 2.0.0, < 2.0.3

    Update to 2.0.3

  • brace-expansion npm

    Affected ranges
    • SEMVER: < 1.1.13

    Update to 1.1.13

  • 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:25.10

    Versions
    • 2.0.1+~1.1.0-1
    • 2.0.1+~1.1.0-2
    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 →