npm — security advisory
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.
- Products
- npm
- Affected versions
- 1.2.18~dfsg-3, 1.3.10~dfsg-1, 1.4.21+ds-2, 11.16.0+ds2-4, 3.5.2-0ubuntu4, 3.5.2-0ubuntu4.1.16.04.1~esm1, 3.5.2-0ubuntu4.1.18.04.1~esm1, 5.8.0+ds6-4, 6.14.4+ds-1ubuntu2, 7.24.2+ds-1, 7.24.2+ds-2, 7.5.2+ds-2, 8.3.0~ds-1, 8.3.0~ds-2, 8.3.2~ds-1, 8.5.0~ds-1, 8.5.1~ds-1, 9.2.0~ds1-1, 9.2.0~ds1-2, 9.2.0~ds1-3, 9.2.0~ds2-2, 9.2.0~ds3-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-9496
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:33 UTC · Revision 1
Source evidence
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.
osv:UBUNTU-CVE-2026-9496
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
npm
Fixed versions: Not specified
Complete source record
{
"id": "219f532d5cd36dd2e205042b82623b8e843bd093dba8cd0add278cd70eaa0e33",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-9496",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-9496",
"summary": "Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.",
"evidence": "osv:UBUNTU-CVE-2026-9496",
"products": [
{
"name": {
"value": "npm",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.18~dfsg-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.3.10~dfsg-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.21+ds-2",
"evidence": "/affected/1/versions"
},
{
"value": "3.5.2-0ubuntu4",
"evidence": "/affected/1/versions"
},
{
"value": "3.5.2-0ubuntu4.1.16.04.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.5.2-0ubuntu4",
"evidence": "/affected/2/versions"
},
{
"value": "3.5.2-0ubuntu4.1.18.04.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.8.0+ds6-4",
"evidence": "/affected/3/versions"
},
{
"value": "6.14.4+ds-1ubuntu2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.5.2+ds-2",
"evidence": "/affected/4/versions"
},
{
"value": "7.24.2+ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "7.24.2+ds-2",
"evidence": "/affected/4/versions"
},
{
"value": "8.3.0~ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "8.3.0~ds-2",
"evidence": "/affected/4/versions"
},
{
"value": "8.3.2~ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "8.5.0~ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "8.5.1~ds-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.2.0~ds1-1",
"evidence": "/affected/5/versions"
},
{
"value": "9.2.0~ds1-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.2.0~ds1-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.2.0~ds3-1",
"evidence": "/affected/7/versions"
},
{
"value": "11.16.0+ds2-4",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "npm",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.2.0~ds1-3",
"evidence": "/affected/8/versions"
},
{
"value": "9.2.0~ds2-2",
"evidence": "/affected/8/versions"
},
{
"value": "9.2.0~ds3-1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-9496",
"aliases": [
"UBUNTU-CVE-2026-9496"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"1.2.18~dfsg-3",
"1.3.10~dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "1.3.10~dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"1.4.21+ds-2",
"3.5.2-0ubuntu4",
"3.5.2-0ubuntu4.1.16.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "3.5.2-0ubuntu4.1.16.04.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"3.5.2-0ubuntu4",
"3.5.2-0ubuntu4.1.18.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "3.5.2-0ubuntu4.1.18.04.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"5.8.0+ds6-4",
"6.14.4+ds-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "6.14.4+ds-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"7.5.2+ds-2",
"7.24.2+ds-1",
"7.24.2+ds-2",
"8.3.0~ds-1",
"8.3.0~ds-2",
"8.3.2~ds-1",
"8.5.0~ds-1",
"8.5.1~ds-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "8.5.1~ds-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"9.2.0~ds1-1",
"9.2.0~ds1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "9.2.0~ds1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"9.2.0~ds1-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "9.2.0~ds1-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"9.2.0~ds3-1",
"11.16.0+ds2-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "11.16.0+ds2-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npm",
"purl": "pkg:deb/ubuntu/npm?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"9.2.0~ds1-3",
"9.2.0~ds2-2",
"9.2.0~ds3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9496.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "npm",
"binary_version": "9.2.0~ds3-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:19.091368019Z",
"provider": "osv",
"upstream": [
"CVE-2026-9496"
],
"references": [
"https://ubuntu.com/security/CVE-2026-9496",
"https://www.cve.org/CVERecord?id=CVE-2026-9496",
"https://security.snyk.io/vuln/SNYK-JS-PACOTE-8225084"
]
},
"related_cves": [
{
"value": "CVE-2026-9496",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 361653,
"published_at": "2026-05-26T07:16:00+00:00"
}