CVE-2021-43616
highpriority · attend · 50OT risk · highEPSS 0.027 · 86 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (9)
Products and version ranges known to be affected.
- netapp next generation application programming interfaceall versionsnvdUScpe:2.3:a:netapp:next_generation_application_programming_interface:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-2278npm: Schwachstelle ermöglicht Umgehen von SicherheitsvorkehrungenDeutsch2021-11-14csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in npm ausnutzen, um Sicherheitsvorkehrungen zu umgehen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (35)
External citations — patches, advisories, analysis.
- https://docs.npmjs.com/cli/v7/commands/npm-cicnnvd
- https://docs.npmjs.com/cli/v8/commands/npm-cicnnvd
- https://github.com/icatalina/CVE-2021-43616cnnvd
- https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490fcnnvd
- https://github.com/npm/cli/issues/2701#issuecomment-972900511cnnvd
- https://github.com/npm/cli/issues/2701#issuecomment-979054224cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NXNVFKOF5ZYH5NIRWHKN6O6UBCHDV6FE/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan