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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | npm | 12.0.2+ds1-1 | — |
| Debian 13 | npm | No fix yet | — |
| Debian 12 | npm | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | lerna | 10.0.1-r1 | — |
| Wolfi rolling | prism | 5.16.0-r6 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | pacote | >= 11.2.7, < 21.5.1 | 21.5.1 | GHSA-w4pp-8pjf-rmxw |
Advisories 28
- ALSA-2026:76750 Important: nodejs:22 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:75864 Important: nodejs22 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:75870 Important: nodejs:22 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:84589 Red Hat Security Advisory: nodejs:22 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:72497 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:84703 Red Hat Security Advisory: nodejs22 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:76750 Red Hat Security Advisory: nodejs:22 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:75870 Red Hat Security Advisory: nodejs:22 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:75864 Red Hat Security Advisory: nodejs22 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:72116 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- ELSA-2026-76750 Important: nodejs:22 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 11, 2026
- ELSA-2026-75870 Important: nodejs:22 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 11, 2026
- RLSA-2026:76750 Important: nodejs:22 security update Rocky Linux Security Advisories · Oct 8, 2026
- RLSA-2026:75864 Important: nodejs22 security update Rocky Linux Security Advisories · Oct 6, 2026
- RLSA-2026:75870 Important: nodejs:22 security update Rocky Linux Security Advisories · Oct 6, 2026
- ELSA-2026-75864 Important: nodejs22 security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 6, 2026
- ALAS2023-2026-2141 Moderate: nodejs24 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 14, 2026
- SUSE-SU-2026:3929-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Sep 10, 2026
- SUSE-SU-2026:3930-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Sep 10, 2026
- ALAS2023-2026-2060 Important: nodejs22 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 17, 2026
- SUSE-SU-2026:22565-1 Security update for nodejs24 SUSE / openSUSE Security Updates · Jul 15, 2026
- openSUSE-SU-2026:21236-1 Security update for nodejs24 SUSE / openSUSE Security Updates · Jul 9, 2026
- SUSE-SU-2026:22368-1 Security update for nodejs22 SUSE / openSUSE Security Updates · Jul 2, 2026
- SUSE-SU-2026:2695-1 Security update for nodejs22 SUSE / openSUSE Security Updates · Jul 1, 2026
- openSUSE-SU-2026:21058-1 Security update for nodejs22 SUSE / openSUSE Security Updates · Jun 30, 2026
- SUSE-SU-2026:2647-1 Security update for nodejs22 SUSE / openSUSE Security Updates · Jun 27, 2026
- openSUSE-SU-2026:11121-1 corepack24-24.17.0-1.1 on GA media SUSE / openSUSE Security Updates · Jun 26, 2026
- SUSE-SU-2026:2633-1 Security update for nodejs24 SUSE / openSUSE Security Updates · Jun 26, 2026
References
- https://security.snyk.io/vuln/SNYK-JS-PACOTE-8225084
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16874025
- https://github.com/npm/pacote/blob/9d7459440826ab4cf962ef98d8f3fd0c4d464b5c/lib/util/add-git-sha.js%23L2C1-L13C2
- https://github.com/npm/pacote/commit/ce804fb1647fe1699b2f87efd01ea9f4efed8508