Advisory

DEBIAN-CVE-2021-43616

Also known as: CVE-2021-43616

Summary

The record has no summary.

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-11-13 18:15 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

npm

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 8.4.1~ds-1 (ecosystem)

Fixed versions

8.4.1~ds-1

Fix

  • Fixed version 8.4.1~ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

npm

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 8.4.1~ds-1 (ecosystem)

Fixed versions

8.4.1~ds-1

Fix

  • Fixed version 8.4.1~ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

npm

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 8.4.1~ds-1 (ecosystem)

Fixed versions

8.4.1~ds-1

Fix

  • Fixed version 8.4.1~ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences