PT-2026-43191 · Npm · Pacote
Rongchen Li
·
Published
2026-05-26
·
Updated
2026-05-26
·
CVE-2026-9496
CVSS v4.0
7.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
pacote versions 11.2.7 and later
Description
A Regular Expression Denial of Service (ReDoS) exists in the
addGitSha() function. An attacker can cause excessive CPU consumption, potentially stalling or crashing the process, by providing a specially crafted spec.rawSpec value. This occurs when the function's regex replacement and string-manipulation logic are triggered, pinning a CPU core. The issue is reachable by unauthenticated users wherever the library consumes user-controlled package specifications.Recommendations
As a temporary mitigation, validate package specifications before passing them to the library.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Pacote