Skip to content
Heist/ feed
Back to feed
Medium

node-brace-expansion — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-102277

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.

Products
node-brace-expansion
Affected versions
1.1.11-1, 1.1.8-1, 2.0.0-1, 2.0.1+~1.1.0-1, 2.0.1+~1.1.0-2, 2.0.1-1, 2.0.1-2, 2.0.3+~1.1.2-2, 2.0.3+~1.1.2-3, 2.1.4+~1.1.2-1
Fixed versions
Not specified
CVEs
CVE-2026-102277
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:53 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-102277

core-osv · Original source

Published 28 Sept 2026, 21:17 UTC

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.

osv:UBUNTU-CVE-2026-102277

node-brace-expansion

Fixed versions: Not specified

node-brace-expansion

Fixed versions: Not specified

node-brace-expansion

Fixed versions: Not specified

node-brace-expansion

Fixed versions: Not specified

node-brace-expansion

Fixed versions: Not specified

node-brace-expansion

Fixed versions: Not specified

Complete source record
{
  "id": "3fed3324b3c9872a6a6d2042dfa0d7bfef3d93e4c1bbf7169ae1a98b13194f1e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-102277",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-102277",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-102277",
    "products": [
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.8-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.8-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.1.11-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.0.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.1-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.0.1+~1.1.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.1+~1.1.0-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.0.3+~1.1.2-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.0.3+~1.1.2-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.1.4+~1.1.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-brace-expansion",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.1+~1.1.0-2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-102277",
      "aliases": [
        "UBUNTU-CVE-2026-102277"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.1.8-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "1.1.8-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.1.8-1",
            "1.1.11-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "1.1.11-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.0.0-1",
            "2.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "2.0.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.0.1-2",
            "2.0.1+~1.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "2.0.1+~1.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=stonking",
            "ecosystem": "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "2.1.4+~1.1.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-brace-expansion",
            "purl": "pkg:deb/ubuntu/node-brace-expansion?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.0.1+~1.1.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102277.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-brace-expansion",
                "binary_version": "2.0.1+~1.1.0-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:45.831629229Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-102277"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-102277",
        "https://www.cve.org/CVERecord?id=CVE-2026-102277",
        "https://github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96",
        "https://github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22",
        "https://github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364",
        "https://github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7e",
        "https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhr"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-102277",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359749,
  "published_at": "2026-09-28T21:17:00+00:00"
}