CVEfocus › CVE database › CVE-2021-43616

CVE-2021-43616

CVSS 9.0 CriticalEPSS 2.6% (higher than 86% of CVEs)Published 2021-11-13Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

29Fixed
4Fix pending
3Will not fix
10Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10npmFix pendingUBUNTU-CVE-2021-43616
Ubuntu 26.04npmFix pendingUBUNTU-CVE-2021-43616
Ubuntu 25.10npmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-43616
Ubuntu 24.04npmFix pendingUBUNTU-CVE-2021-43616
Ubuntu 22.04npmFix pendingUBUNTU-CVE-2021-43616
Ubuntu 20.04npmNot affected
vulnerable_code_not_present
Ubuntu 16.04npmWill not fix
Ubuntu decided not to fix this in this release
Ubuntu 14.04npmWill not fix
Ubuntu decided not to fix this in this release
Debian 14npmFixed8.4.1~ds-1DEBIAN-CVE-2021-43616
Debian 13npmFixed8.4.1~ds-1DEBIAN-CVE-2021-43616
Debian 12npmFixed8.4.1~ds-1DEBIAN-CVE-2021-43616
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8nodejsFixed1:16.14.0-4.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-develFixed1:16.14.0-4.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-docsFixed1:16.14.0-4.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:16.14.0-4.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.15-1.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-packagingFixed0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2022:4796
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmFixed1:8.3.1-1.16.14.0.4.module+el8.6.0+15294+54b291d2RHSA-2022:4796
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 8nodejsFixed1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux 8nodejs-develFixed1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux 8nodejs-docsFixed1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux 8nodejs-full-i18nFixed1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux 8nodejs-nodemonFixed2.0.15-1.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux 8nodejs-packagingFixed25-1.module_el8.5.0+2605+45d748afALSA-2022:4796
AlmaLinux 8npmFixed1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
Rocky Linux 8nodejsFixed1:16.14.0-4.module+el8.6.0+978+59f26232RLSA-2022:4796
Rocky Linux 8nodejs-nodemonFixed0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2022:4796
Rocky Linux 8nodejs-packagingFixed0:25-1.module+el8.6.0+1046+80feca58RLSA-2022:4796
Alpine Linux 3.24npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.23npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.22npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.21npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.20npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.19npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.18npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.17npmFixed8.1.4-r0ALPINE-CVE-2021-43616
Alpine Linux 3.16npmFixed8.1.4-r0ALPINE-CVE-2021-43616

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.