{"id":"CVE-2026-9496","aliases":["CVE-2026-9496","GHSA-w4pp-8pjf-rmxw"],"related":[],"kind":"vulnerability","state":"published","title":"pacote is vulnerable to Denial of Service (DoS) via the addGitSha function","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del paquete pacote a partir de la 11.2.7 son vulnerables a denegación de servicio (DoS) a través de la función addGitSha. Un atacante puede explotar esta vulnerabilidad al proporcionar un valor spec.rawSpec especialmente diseñado que activa la lógica de reemplazo de expresiones regulares y manipulación de cadenas de la función, causando un consumo excesivo de CPU y potencialmente paralizando o bloqueando el proceso.","source":"nvd"}],"published":"2026-05-26T05:00:07.813Z","modified":"2026-09-10T03:51:07.162Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"11.2.7","fixed":"21.5.1","status":"affected"}],"product":"pacote","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"11.2.7","fixed":"*","status":"affected"}],"product":"org.webjars.npm:pacote","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"11.2.7","status":"affected","fixed":"21.5.1"}],"ecosystem":"npm","package":"pacote","purl":"pkg:npm/pacote","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-PACOTE-8225084","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16874025","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/pacote/blob/9d7459440826ab4cf962ef98d8f3fd0c4d464b5c/lib/util/add-git-sha.js%23L2C1-L13C2","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/npm/pacote/commit/ce804fb1647fe1699b2f87efd01ea9f4efed8508","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9496","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/npm/pacote/commit/627a7dc1a214d857472a13b48e42559c75288c9e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/pacote","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/npm/pacote/releases/tag/v21.5.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/npm/pacote/releases/tag/v22.0.0","tags":["web"],"sources":["ghsa"]}],"credits":["Rongchen Li"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-26T12:34:38.845Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-9496","url":"https://www.cve.org/CVERecord?id=CVE-2026-9496","licence":"CVE Terms of Use","modified":"2026-07-07T15:25:27.535Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w4pp-8pjf-rmxw","url":"https://github.com/advisories/GHSA-w4pp-8pjf-rmxw","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:07.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-9496","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9496","licence":"Public domain","modified":"2026-07-23T11:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:22.310Z","epss":{"score":0.00346,"percentile":0.30124,"date":"2026-12-02T12:00:21.000Z"}}