Skip to content
OpenAdvisories
High · 7.5 CVE-2026-9496 EUVD-2026-31793GHSA-w4pp-8pjf-rmxw

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

Published May 26, 2026 · Updated Jul 7, 2026 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— pacote 11.2.7 – < 21.5.1 21.5.1
— org.webjars.npm:pacote 11.2.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 npm 12.0.2+ds1-1 —
Debian 13 npm No fix yet —
Debian 12 npm No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 npm No fix yet —
Ubuntu 26.04 LTS npm No fix yet —
Ubuntu 25.10 npm No fix yet —
Ubuntu 24.04 LTS npm No fix yet —
Ubuntu 22.04 LTS npm No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS npm No fix yet —
Ubuntu 14.04 LTS npm No fix yet —
Ubuntu Pro 18.04 LTS npm No fix yet —
Ubuntu Pro 16.04 LTS npm No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 nodejs +5 1:22.23.2-3.el10_2 RHSA-2026:75864
RHEL 10 nodejs-npm 1:10.9.8-1.22.23.2.3.el10_2 RHSA-2026:75864
RHEL 9 nodejs +4 1:22.23.2-2.module+el9.8.0+24958+80b2ac6e RHSA-2026:76750
RHEL 9 nodejs-nodemon 3.1.14-2.module+el9.8.0+24709+804d6b5b RHSA-2026:76750
RHEL 9 nodejs-packaging +1 2021.06-6.module+el9.8.0+24709+804d6b5b RHSA-2026:76750
RHEL 9 npm 1:10.9.8-1.22.23.2.2.module+el9.8.0+24958+80b2ac6e RHSA-2026:76750
RHEL 9 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module+el9.8.0+24958+80b2ac6e RHSA-2026:76750
RHEL 8 nodejs +4 1:22.23.2-2.module+el8.10.0+24957+74108fbf RHSA-2026:75870
RHEL 8 nodejs-nodemon 3.1.14-2.module+el8.10.0+24710+c2e9b41f RHSA-2026:75870
RHEL 8 nodejs-packaging +1 2021.06-6.module+el8.10.0+24710+c2e9b41f RHSA-2026:75870
RHEL 8 npm 1:10.9.8-1.22.23.2.2.module+el8.10.0+24957+74108fbf RHSA-2026:75870
RHEL 8 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module+el8.10.0+24957+74108fbf RHSA-2026:75870
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS nodejs +5 1:22.23.2-2.el10_0 RHSA-2026:84703
RHEL 10.0 EUS nodejs-npm 1:10.9.8-1.22.23.2.2.el10_0 RHSA-2026:84703
RHEL 9.6 EUS nodejs +4 1:22.23.2-2.module+el9.6.0+25055+19201b10 RHSA-2026:84589
RHEL 9.6 EUS nodejs-nodemon 3.1.14-2.module+el9.6.0+24789+4011c12f RHSA-2026:84589
RHEL 9.6 EUS nodejs-packaging +1 2021.06-4.module+el9.6.0+23473+45664c2d RHSA-2026:84589
RHEL 9.6 EUS npm 1:10.9.8-1.22.23.2.2.module+el9.6.0+25055+19201b10 RHSA-2026:84589
RHEL 9.6 EUS v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module+el9.6.0+25055+19201b10 RHSA-2026:84589
Red Hat Hardened Images 1 grafana12.4 12.4.10-0.8.hum1 RHSA-2026:72497, RHSA-2026:72116

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 nodejs +4 1:22.23.2-3.el10_2 ALSA-2026:75864
AlmaLinux 10 nodejs-npm 1:10.9.8-1.22.23.2.3.el10_2 ALSA-2026:75864
AlmaLinux 9 nodejs +4 1:22.23.2-2.module_el9.8.0+322+f4aa738c ALSA-2026:76750
AlmaLinux 9 nodejs-nodemon 3.1.14-2.module_el9.8.0+302+959ebcd4 ALSA-2026:76750
AlmaLinux 9 nodejs-packaging +1 2021.06-6.module_el9.7.0+227+12323393 ALSA-2026:76750
AlmaLinux 9 npm 1:10.9.8-1.22.23.2.2.module_el9.8.0+322+f4aa738c ALSA-2026:76750
AlmaLinux 9 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module_el9.8.0+322+f4aa738c ALSA-2026:76750
AlmaLinux 8 nodejs +4 1:22.23.2-2.module_el8.10.0+4296+737cb4d7 ALSA-2026:75870
AlmaLinux 8 nodejs-nodemon 3.1.14-2.module_el8.10.0+4252+aedd4c30 ALSA-2026:75870
AlmaLinux 8 nodejs-packaging +1 2021.06-6.module_el8.10.0+4158+e796f37f ALSA-2026:75870
AlmaLinux 8 npm 1:10.9.8-1.22.23.2.2.module_el8.10.0+4296+737cb4d7 ALSA-2026:75870
AlmaLinux 8 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module_el8.10.0+4296+737cb4d7 ALSA-2026:75870

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 nodejs22 1:22.23.2-3.el10_2 RLSA-2026:75864
Rocky Linux 9 nodejs 1:22.23.2-2.module+el9.8.0+40374+17512296 RLSA-2026:76750
Rocky Linux 9 nodejs-nodemon 3.1.14-2.module+el9.8.0+40264+d9b257bb RLSA-2026:76750
Rocky Linux 9 nodejs-packaging 2021.06-6.module+el9.7.0+40052+e32ea525 RLSA-2026:76750
Rocky Linux 8 nodejs-nodemon 3.1.14-2.module+el8.10.0+40277+b1b3f89e RLSA-2026:75870
Rocky Linux 8 nodejs-packaging 2021.06-6.module+el8.10.0+40048+6d99f608 RLSA-2026:75870
ReleasePackageFixed inAdvisory
SLES 15 SP7 nodejs22 22.23.0-150700.3.12.1 SUSE-SU-2026:2695-1
SLES 15 SP7 nodejs24 24.17.0-150700.15.11.1 SUSE-SU-2026:2633-1
SLES 15 SP6 nodejs20 20.20.2-150600.3.21.1 SUSE-SU-2026:3929-1
SLES 15 SP6 nodejs22 22.23.0-150600.13.18.1 SUSE-SU-2026:2647-1
SLES 15 SP5 nodejs20 20.20.2-150500.11.30.1 SUSE-SU-2026:3930-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 nodejs22 22.23.0-160000.1.1 SUSE-SU-2026:22368-1
SLES for SAP 16.0 nodejs24 24.18.0-160000.1.1 SUSE-SU-2026:22565-1
SLES for SAP 15 SP6 nodejs20 20.20.2-150600.3.21.1 SUSE-SU-2026:3929-1
SLES for SAP 15 SP6 nodejs22 22.23.0-150600.13.18.1 SUSE-SU-2026:2647-1
SLES for SAP 15 SP5 nodejs20 20.20.2-150500.11.30.1 SUSE-SU-2026:3930-1
SLES 16.0 nodejs22 22.23.0-160000.1.1 SUSE-SU-2026:22368-1
SLES 16.0 nodejs24 24.18.0-160000.1.1 SUSE-SU-2026:22565-1
SLE HPC 15 SP5 nodejs20 20.20.2-150500.11.30.1 SUSE-SU-2026:3930-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs24 24.17.0-1.1 openSUSE-SU-2026:11121-1
openSUSE Leap 16.0 nodejs22 22.23.0-160000.1.1 openSUSE-SU-2026:21058-1
openSUSE Leap 16.0 nodejs24 24.18.0-160000.1.1 openSUSE-SU-2026:21236-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs22 +4 1:22.23.2-1.amzn2023.0.2 ALAS2023-2026-2060
Amazon Linux 2023 nodejs22-npm 1:10.9.8-1.22.23.2.1.amzn2023.0.2 ALAS2023-2026-2060
Amazon Linux 2023 nodejs24 +4 1:24.20.0-1.amzn2023.0.1 ALAS2023-2026-2141
Amazon Linux 2023 nodejs24-npm 1:11.19.0-1.24.20.0.1.amzn2023.0.1 ALAS2023-2026-2141
Amazon Linux 2023 v8-12.4-devel 3:12.4.254.21-1.22.23.2.1.amzn2023.0.2 ALAS2023-2026-2060
Amazon Linux 2023 v8-13.6-devel 3:13.6.233.17-1.24.20.0.1.amzn2023.0.1 ALAS2023-2026-2141

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 nodejs +4 1:22.23.2-3.0.1.el10_2 ELSA-2026-75864
Oracle Linux 10 nodejs-npm 1:10.9.8-1.22.23.2.3.0.1.el10_2 ELSA-2026-75864
Oracle Linux 9 nodejs +4 1:22.23.2-2.module+el9.8.0+91062+a7d6b802 ELSA-2026-76750
Oracle Linux 9 nodejs-nodemon 3.1.14-2.module+el9.8.0+91010+e0f4f255 ELSA-2026-76750
Oracle Linux 9 nodejs-packaging +1 2021.06-6.module+el9.8.0+91010+e0f4f255 ELSA-2026-76750
Oracle Linux 9 npm 1:10.9.8-1.22.23.2.2.module+el9.8.0+91062+a7d6b802 ELSA-2026-76750
Oracle Linux 9 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module+el9.8.0+91062+a7d6b802 ELSA-2026-76750
Oracle Linux 8 nodejs +4 1:22.23.2-2.module+el8.10.0+91061+02523cc0 ELSA-2026-75870
Oracle Linux 8 nodejs-nodemon 3.1.14-2.module+el8.10.0+91061+02523cc0 ELSA-2026-75870
Oracle Linux 8 nodejs-packaging +1 2021.06-4.module+el8.10.0+91061+02523cc0 ELSA-2026-75870
Oracle Linux 8 npm 1:10.9.8-1.22.23.2.2.module+el8.10.0+91061+02523cc0 ELSA-2026-75870
Oracle Linux 8 v8-12.4-devel 3:12.4.254.21-1.22.23.2.2.module+el8.10.0+91061+02523cc0 ELSA-2026-75870

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling lerna 10.0.1-r1 —
Wolfi rolling prism 5.16.0-r6 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm pacote >= 11.2.7, < 21.5.1 21.5.1 GHSA-w4pp-8pjf-rmxw

Advisories 28

References