CVE-2021-43616

Advisory lineage Upstream: 0 Downstream: 4
Modified
Published: 13 Nov 2021, 00:00
Last modified:04 Aug 2024, 04:03

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.1 (nvd)
EPSS Score
1.85% LOW
2% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
2 found
Dark Web
Not detected

Timeline

13 Nov 2021, 00:00
Published
Vulnerability first disclosed
04 Aug 2024, 04:03
Last Modified
Vulnerability information updated

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 Metrics

  • v3.1CRITICALScore: 9CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N
  • v3.1CRITICALScore: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v2.0HIGHScore: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 1.85% Percentile: 83%

Techniques & Countermeasures

  • CWE-345Insufficient Verification of Data Authenticity

    The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.

Affected Systems

  • fedoraprojectfedora

    35

  • netappnext_generation_application_programming_interface

    na

  • npmjsnpm

    ≥ 7.0.0, ≤ 7.24.2 | ≥ 8.0.0, ≤ 8.1.3

References (10)