Advisory

GHSA-w4pp-8pjf-rmxw

Also known as: CVE-2026-9496

Summary

pacote is vulnerable to Denial of Service (DoS) via the addGitSha function

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-26 13:30 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

pacote

npm · All systems

Affected

  • introduced 11.2.7, fixed 21.5.1 (semver)

Fixed versions

21.5.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences