CVE-2021-43616

Source
https://cve.org/CVERecord?id=CVE-2021-43616
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-43616.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-43616
Downstream
Related
Published
2021-11-13T18:15:07.537Z
Modified
2026-02-23T08:25:01.823591Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/npm/cli

Affected ranges

Affected versions

v6.*
v6.14.7
v6.14.8
v7.*
v7.0.0
v7.0.1
v7.0.10
v7.0.11
v7.0.12
v7.0.13
v7.0.14
v7.0.15
v7.0.2
v7.0.3
v7.0.4
v7.0.5
v7.0.6
v7.0.7
v7.0.8
v7.0.9
v7.1.0
v7.1.1
v7.1.2
v7.10.0
v7.11.1
v7.11.2
v7.12.0
v7.12.1
v7.13.0
v7.14.0
v7.15.0
v7.15.1
v7.16.0
v7.17.0
v7.18.0
v7.18.1
v7.19.0
v7.19.1
v7.2.0
v7.20.0
v7.20.1
v7.20.2
v7.20.3
v7.20.4
v7.20.5
v7.20.6
v7.21.0
v7.21.1
v7.22.0
v7.23.0
v7.24.0
v7.24.1
v7.24.2
v7.3.0
v7.4.0
v7.4.1
v7.4.2
v7.4.3
v7.5.0
v7.5.1
v7.5.3
v7.5.4
v7.5.5
v7.5.6
v7.6.0
v7.6.1
v7.6.2
v7.6.3
v7.7.0
v7.7.1
v7.7.2
v7.7.3
v7.7.4
v7.7.5
v7.7.6
v7.8.0
v7.9.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-43616.json"