node-brace-expansion — security advisory
brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.
- 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-13149
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:54 UTC · Revision 1
Source evidence
brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.
osv:UBUNTU-CVE-2026-13149
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
node-brace-expansion
Fixed versions: Not specified
Complete source record
{
"id": "989ac1c47162aeaa9e854f7058c8dc58a0c43de31309c227230d86a8b926105e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-13149",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-13149",
"summary": "brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.",
"evidence": "osv:UBUNTU-CVE-2026-13149",
"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-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.0.1+~1.1.0-2",
"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"
},
{
"value": "2.0.3+~1.1.2-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.0.3+~1.1.2-3",
"evidence": "/affected/5/versions"
},
{
"value": "2.1.4+~1.1.2-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "node-brace-expansion",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.1+~1.1.0-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-13149",
"aliases": [
"UBUNTU-CVE-2026-13149"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber"
},
{
"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-13149.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-13149.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-13149.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-13149.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=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.0.1+~1.1.0-1",
"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-13149.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-brace-expansion",
"binary_version": "2.0.1+~1.1.0-2"
}
]
}
},
{
"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-13149.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-13149.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-brace-expansion",
"binary_version": "2.0.1+~1.1.0-2"
}
]
}
}
],
"modified": "2026-10-17T12:59:52.702141400Z",
"provider": "osv",
"upstream": [
"CVE-2026-13149"
],
"references": [
"https://ubuntu.com/security/CVE-2026-13149",
"https://www.cve.org/CVERecord?id=CVE-2026-13149",
"https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754",
"https://www.npmjs.com/package/brace-expansion"
]
},
"related_cves": [
{
"value": "CVE-2026-13149",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359836,
"published_at": "2026-06-30T10:16:00+00:00"
}