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.
The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | nodejs22-1:22.23.2-3.el10_2 | * |
| Red Hat Enterprise Linux 8 | RedHat | nodejs:22-8100020260928121333.6d880403 | * |
| Red Hat Enterprise Linux 9 | RedHat | nodejs:22-9080020260928121441.rhel9 | * |
| Red Hat Hardened Images | RedHat | grafana12-4-main-12.4.10-0.8.hum1 | * |
| Red Hat Hardened Images | RedHat | grafana12-4-main-12.4.10-0.9.hum1 | * |
| Npm | Ubuntu | questing | * |