CVE-2021-43616
A public proof of concept exists; no exploitation attested.
- Published2021-11-13
- WeaknessCWE-345
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-11-1318:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.x | ≥ 7.0.0, ≤ 7.24.2 | no fix published | NVD |
| 8.x | ≥ 8.0.0, ≤ 8.1.3 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 35.x | = 35 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- nodejsRocky Linux:8all versions · fixed in 1:16.14.0-4.module+el8.6.0+978+59f26232
- nodejsRed Hat:enterprise_linux:8::appstreamall versions · fixed in 1:16.14.0-4.module+el8.6.0+15294+54b291d2and 5 other packages
- nodejsMageia:8all versions · fixed in 14.20.0-1.1.mga8
- nodejsAlmaLinux:8all versions · fixed in 1:16.14.0-4.module_el8.6.0+2904+f21ad6f4and 3 other packages
- nodejs-nodemonRocky Linux:8all versions · fixed in 0:2.0.15-1.module+el8.5.0+721+4c107270
- nodejs-nodemonRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.0.15-1.module+el8.6.0+15294+54b291d2
- nodejs-nodemonAlmaLinux:8all versions · fixed in 2.0.15-1.module_el8.5.0+2605+45d748af
- nodejs-nodemonAlmaLinux:8all versions · fixed in 2.0.15-1.module_el8.6.0+2904+f21ad6f4
26 more package ranges on OSV.dev
Vendor advisories
npm: npm ci succeeds when package-lock.json doesn't match package.json
Red Hat Security Advisory: nodejs:16 security update
Fix
- Vendor fix Red Hat Product Security RHSA-2022:4796 · 30 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2022:4796 · 30 productsRed Hat has investigated whether possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.
Advisories and patches
- docs.npmjs.comVendor Advisory
- github.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01icatalina/CVE-2021-43616
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.19known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- NVDweakness (CWE)CWE-345read 2026-10-23
- FIRST EPSSEPSS score2.6 %2026-12-04
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2021-30530same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-ppxp-px5q-gwqmsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:4796advisory covering several CVEsAlmaLinux · MIT
- MGASA-2022-0294advisory covering several CVEsMageia · LicenseRef-unstated
- RHSA-2022:4796advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:4796advisory covering several CVEsRocky Linux · BSD-3-Clause
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-11-13
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-ppxp-px5q-gwqm
Frequently asked questions
What is CVE-2021-43616?
Is CVE-2021-43616 actively exploited?
What is the CVSS score for CVE-2021-43616?
Running npm? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-ppxp-px5q-gwqm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0