CVE-2026-9496
highpriority · track · 0EPSS 0.003 · 27 %ileEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.6–8.7
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-w4pp-8pjf-rmxwpacote is vulnerable to Denial of Service (DoS) via the addGitSha function2026-05-26ghsa · osvUS
Versions of the package pacote from 11.2.7 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://github.com/npm/pacote/blob/9d7459440826ab4cf962ef98d8f3fd0c4d464b5c/lib/util/add-git-sha.js%23L2C1-L13C2cnnvd
- https://github.com/npm/pacote/commit/ce804fb1647fe1699b2f87efd01ea9f4efed8508cnnvd
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16874025cnnvd
- https://security.snyk.io/vuln/SNYK-JS-PACOTE-8225084cnnvd
- https://github.com/npm/pacote/blob/9d7459440826ab4cf962ef98d8f3fd0c4d464b5c/lib/util/add-git-sha.js%23L2C1-L13C2enisa_euvd
- https://github.com/npm/pacote/commit/ce804fb1647fe1699b2f87efd01ea9f4efed8508enisa_euvd
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16874025enisa_euvd
- https://security.snyk.io/vuln/SNYK-JS-PACOTE-8225084enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan