NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-9496: pacote is vulnerable to Denial of Service (DoS) via the addGitSha function

highCVSS 4.0 7.7 · 3.1 7.5GHSA-w4pp-8pjf-rmxw

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.

Published May 26, 2026 · Updated Aug 27, 2026

Affected packages

pacote

Ecosystem
npm
Affected
>= 11.2.7, < 21.5.1
Fixed in
21.5.1
Check
npm ls pacote

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to Capco-srachels, zain-ul-abideen-5036.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology