Skip to main content
Public proof of conceptFix available

CVE-2021-43616

A public proof of concept exists; no exploitation attested.

  • Published2021-11-13
  • WeaknessCWE-345

Am I 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
  1. 2021-11-1318:15CVE publishedNVD

Versions per branch

NVD
Npmjs npm
BranchAffectedFixed in
7.x≥ 7.0.0, ≤ 7.24.2no fix published
8.x≥ 8.0.0, ≤ 8.1.3no fix published
Fedoraproject fedora
BranchAffectedFixed in
35.x= 35no fix published
Netapp next generation application programming interface
BranchAffectedFixed in
—all versionsno fix published

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

  • CVE-2021-43616 Red Hat Product Security30 products fixed

    npm: npm ci succeeds when package-lock.json doesn't match package.json

  • RHSA-2022:4796 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: nodejs:16 security update

Full record on NVD

Fix

  1. 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
  2. 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

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2021-43616 actively exploited?

Active exploitation of CVE-2021-43616 has not been confirmed. Its EPSS score was 2.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-43616?

CVE-2021-43616 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record