Vulnerability · Published Nov 13, 2021 · Assigned by mitre

CVE-2021-43616

Critical 9.0

In plain English

A critical-severity security flaw in the nodejs package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.0Critical
Exploit odds (30 days)2.7%top 13.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux:8nodejs-devel1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux:8nodejs-docs1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux:8nodejs-full-i18n1:16.14.0-4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
AlmaLinux:8nodejs-nodemon2.0.15-1.module_el8.5.0+2605+45d748afALSA-2022:4796
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+246+05401605ALSA-2022:4796
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2022:4796
AlmaLinux:8npm1:8.3.1-1.16.14.0.4.module_el8.6.0+2904+f21ad6f4ALSA-2022:4796
Alpine:v3.20npm8.1.4-r0ALPINE-CVE-2021-43616
Alpine:v3.21npm8.1.4-r0ALPINE-CVE-2021-43616
Alpine:v3.22npm8.1.4-r0ALPINE-CVE-2021-43616
Alpine:v3.23npm8.1.4-r0ALPINE-CVE-2021-43616
Alpine:v3.24npm8.1.4-r0ALPINE-CVE-2021-43616
Debian:12npm8.4.1~ds-1DEBIAN-CVE-2021-43616
Debian:13npm8.4.1~ds-1DEBIAN-CVE-2021-43616
Debian:14npm8.4.1~ds-1DEBIAN-CVE-2021-43616
Rocky Linux:8nodejs1:16.14.0-4.module+el8.6.0+978+59f26232RLSA-2022:4796
Rocky Linux:8nodejs-nodemon0:2.0.15-1.module+el8.5.0+721+4c107270RLSA-2022:4796
Rocky Linux:8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2022:4796
Rocky Linux:8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2022:4796
Ubuntu:22.04:LTSnpmno fix listedUBUNTU-CVE-2021-43616
Ubuntu:24.04:LTSnpmno fix listedUBUNTU-CVE-2021-43616
Ubuntu:25.10npmno fix listedUBUNTU-CVE-2021-43616
Ubuntu:26.04:LTSnpmno fix listedUBUNTU-CVE-2021-43616
Ubuntu:26.10npmno fix listedUBUNTU-CVE-2021-43616

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References