Critical severity · published Nov 13, 2021
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
9.8
CVSS
2.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.7% · higher than 86% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FE
Fedora · Fedoraproject
35 · source: NVD
NG
Next Generation Application Programming Interface · Netapp
All versions, or not specified · source: NVD
NP
Npm · Npmjs
7.0.0 through 7.24.2; 8.0.0 through 8.1.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-43616
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-43616
Product
https://docs.npmjs.com/cli/v7/commands/npm-ci
docs.npmjs.com
https://docs.npmjs.com/cli/v8/commands/npm-ci
Third Party Advisory
https://github.com/icatalina/CVE-2021-43616
Patch
https://github.com/npm/cli/commit/457e0ae61bbc55846f5af44afa4066921923490f
Exploit
https://github.com/npm/cli/issues/2701
github.com
https://github.com/npm/cli/issues/2701#issuecomment-972900511
More from Fedora
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2021-44026
Roundcube Webmail SQL Injection Vulnerability
9.8
CVE-2021-42013
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
