CVE Database›Document archive›CVE-2026-9496

CVE-2026-9496

pacote: Pacote: Denial of Service via crafted spec.rawSpec value in addGitSha function

Loading…

Severity

Important

Red Hat Product Security

7.5

CVSS 3.1

Review impact separately from score.

Published · May 26, 2026

Updated · October 31, 2026

Description

A flaw was found in the pacote component. A remote attacker can exploit this denial of service (DoS) vulnerability by providing a specially crafted input to the addGitSha function. This malicious input triggers excessive CPU consumption due to regex replacement and string manipulation, which can lead to the process stalling or crashing.

Statement

A flaw was found in the pacote npm package. Pacote retrieves package metadata and archives from npm registries, Git repositories, and other sources. In affected versions, the addGitSha function strips Git committish information from a package specification using a regular expression that is vulnerable to inefficient backtracking. An attacker who can supply a crafted spec.rawSpec value can cause the Node.js process that calls pacote to consume excessive CPU and become unresponsive, resulting in denial of service.

Red Hat products that include pacote versions from 11.2.7 up to (but not including) 21.5.1 may be affected when Node.js workloads process package specifications through pacote or through npm operations that depend on pacote. The impact is limited to the Node.js process performing that work; host operating systems are not directly affected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this limit the length of incoming package specifiers (spec.rawSpec) before they reach the resolution service. Enforce hard CPU time limits or timeouts on isolated build jobs and package resolution processes.

CVSS / CWE

CVSS 3.1 · 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CWE-1333 · Inefficient Regular Expression Complexity