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.

Project Subscriptions

Vendors Products
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 27 May 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Npmjs
Npmjs pacote
Vendors & Products Npmjs
Npmjs pacote

Tue, 26 May 2026 16:15:00 +0000

Type Values Removed Values Added
Title Denial of Service via RegExp Replacement in pacote addGitSha Function

Tue, 26 May 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 26 May 2026 07:45:00 +0000

Type Values Removed Values Added
Title Denial of Service via RegExp Replacement in pacote addGitSha Function

Tue, 26 May 2026 06:30:00 +0000

Type Values Removed Values Added
Description 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.
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P'}

cvssV4_0

{'score': 8.7, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-05-26T12:41:58.078Z

Reserved: 2026-05-25T09:30:49.118Z

Link: CVE-2026-9496

cve-icon Vulnrichment

Updated: 2026-05-26T12:34:11.254Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-26T07:16:19.410

Modified: 2026-05-26T20:16:40.787

Link: CVE-2026-9496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T10:05:27Z

Weaknesses