CVE-2021-22921

published 12 Jul 2021 · updated 30 Apr 2025

Node.js before 16.4.1, 14.17.2, and 12.22.2 is vulnerable to local privilege escalation attacks under certain conditions on Windows…

5.0MediumEPSS 7%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 7%. Fixed in 10.*, 11.*, 12.22.2 and 10 more.

Node.js before 16.4.1, 14.17.2, and 12.22.2 is vulnerable to local privilege escalation attacks under certain conditions on Windows platforms. More specifically, improper configuration of permissions in the installation directory allows an attacker to perform two different escalation attacks: PATH and DLL hijacking.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nodejs>=10.0 <10.*, >=11.0 <11.*, >=12.0 <12.22.2, >=13.0 <13.*, >=14.0 <14.17.2, >=15.0 <15.*, >=16.0 <16.4.1, >=4.0 <4.*, >=5.0 <5.*, >=6.0 <6.*, >=7.0 <7.*, >=8.0 <8.*, >=9.0 <9.*10.*, 11.*, 12.22.2, 13.*, 14.17.2, 15.*, 16.4.1, 4.*, 5.*, 6.*, 7.*, 8.*, 9.*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-22921 severity on Zeptric[![CVE-2021-22921](https://zeptric.io/badge/cve/CVE-2021-22921.svg)](https://zeptric.io/cve/CVE-2021-22921)