Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-102278

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-102278

brace-expansion

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "juliangruber",
    "product": "brace-expansion",
    "versions": [
      {
        "status": "affected",
        "version": ">= 4.0.0, < 5.0.11"
      },
      {
        "status": "affected",
        "version": ">= 3.0.0, < 3.0.8"
      },
      {
        "status": "affected",
        "version": ">= 2.0.0, < 2.1.6"
      },
      {
        "status": "affected",
        "version": "< 1.1.20"
      }
    ]
  }
]
Related CVEs
CVE-2026-102278

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

CVE-2026-102278 · High

brace-expansion, brace-expansion, brace-expansion, brace-expansion

Event
#5297 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement