CVE-2021-43616
published critical CVSS 3.1 · 9.0npm: npm ci succeeds when package-lock.json doesn't match package.json
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-084 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | nodejs | Advisory build | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| Alpine Linux | edge | npm | Fixed | 8.1.4-r0 | Package fix record |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsaarch64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Amazon Linux | AL2023 | nodejsaarch64 | Listed in advisory | Not stated | ALAS2023-2023-084 |
| Rocky Linux | 8 | nodejsaarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
Show 79 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 2.0.15-1.module_el8.5.0+2605+45d748af | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 25-1.module_el8.5.0+246+05401605 | ALSA-2022:4796 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 25-1.module_el8.5.0+2605+45d748af | ALSA-2022:4796 |
| AlmaLinux | 8 | npm | Advisory build | 1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:4796 |
| Alpine Linux | v3.16 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.17 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.18 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.19 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.20 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.21 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.22 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.23 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Alpine Linux | v3.24 | npm | Fixed | 8.1.4-r0 | Package fix record |
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 16b | Advisory build | 1:16.14.0-4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 16b | Advisory build | 0:2.0.15-1.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 16b | Advisory build | 0:2.0.15-1.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 16b | Advisory build | 0:25-1.module+el8.5.0+20388+4b61e68d | ELSA-2022-4796 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 16b | Advisory build | 0:25-1.module+el8.5.0+20388+4b61e68d | ELSA-2022-4796 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 16b | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 16b | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+20672+19f3909b | ELSA-2022-4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsppc64le | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejss390x | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejssrc | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsx86_64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfoaarch64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfoppc64le | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfos390x | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfox86_64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourceaarch64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourceppc64le | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsources390x | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourcex86_64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develaarch64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develppc64le | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-devels390x | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develx86_64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-docsnoarch | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18naarch64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18nppc64le | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18ns390x | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18nx86_64 | Advisory build | 1:16.14.0-4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-nodemonnoarch | Advisory build | 2.0.15-1.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-nodemonsrc | Advisory build | 2.0.15-1.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-packagingnoarch | Advisory build | 25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-packagingsrc | Advisory build | 25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | npmaarch64 | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | npmppc64le | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | npms390x | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Red Hat Enterprise Linux | RHEL-8 | npmx86_64 | Advisory build | 1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2 | RHSA-2022:4796 |
| Amazon Linux | AL2023 | nodejsnoarch | Listed in advisory | Not stated | ALAS2023-2023-084 |
| Amazon Linux | AL2023 | nodejssrc | Listed in advisory | Not stated | ALAS2023-2023-084 |
| Amazon Linux | AL2023 | nodejsx86_64 | Listed in advisory | Not stated | ALAS2023-2023-084 |
| Rocky Linux | 8 | nodejssrc | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejsx86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-develaarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-develx86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-docsnoarch | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-full-i18naarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-full-i18nx86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-nodemonnoarch | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-nodemonsrc | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-packagingnoarch | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | nodejs-packagingsrc | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | npmaarch64 | Listed in advisory | Not stated | RLSA-2022:4796 |
| Rocky Linux | 8 | npmx86_64 | Listed in advisory | Not stated | RLSA-2022:4796 |
Description
The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json differs from package.json. This behavior is inconsistent with the documentation, and makes it easier for attackers to install malware that was supposed to have been blocked by an exact version match requirement in package-lock.json. NOTE: The npm team believes this is not a vulnerability. It would require someone to socially engineer package.json which has different dependencies than package-lock.json. That user would have to have file system or write access to change dependencies. The npm team states preventing malicious actors from socially engineering or gaining file system access is outside the scope of the npm CLI.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.0 / 10
- Severity
- critical
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
10- https://docs.npmjs.com/cli/v7/commands/npm-ci
- https://docs.npmjs.com/cli/v8/commands/npm-ci
- https://github.com/icatalina/CVE-2021-43616
- https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f
- https://github.com/npm/cli/issues/2701
- https://github.com/npm/cli/issues/2701#issuecomment-972900511
- https://github.com/npm/cli/issues/2701#issuecomment-979054224
- FEDORA-2022-97b214b298 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/
- https://medium.com/cider-sec/this-time-we-were-lucky-85c0dcac94a0
- https://security.netapp.com/advisory/ntap-20211210-0002/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 82cd58fc9c5e5692806db3b716896ca1e1176ac050a848e65975b5ace95879d7
- Ingested
- 23 Sep 2026, 07:56:36 UTC
- Source record
- Official CVE record