Node.js 12.x < 12.22.2 / 14.x < 14.17.2 / 16.x < 16.4.1 Multiple Vulnerabilities

high Nessus Plugin ID 151975


Node.js - JavaScript run-time environment is affected by multiple vulnerabilities.


The version of Node.js installed on the remote host is prior to 12.22.2, 14.17.2, 16.4.1. It is, therefore, affected by multiple vulnerabilities as referenced in the July 2021 Security Releases advisory.

- Node.js is vulnerable to out-of-bounds read in libuv's uv__idna_toascii() function which is used to convert strings to ASCII. This is called by Node's dns module's lookup() function and can lead to information disclosures or crashes. (CVE-2021-22918)

- Node.js 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. (CVE-2021-22921)

- This is a vulnerability in the ssri npm module which may be vulnerable to denial of service attacks.

- This is a vulnerability in the hosted-git-info npm module which may be vulnerable to denial of service attacks. (CVE-2021-23362)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.


Upgrade to Node.js version 12.22.2 / 14.17.2 / 16.4.1 or later.

See Also

Plugin Details

Severity: High

ID: 151975

File Name: nodejs_2021_jul.nasl

Version: 1.5

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 7/22/2021

Updated: 5/9/2022

Supported Sensors: Nessus Agent

Risk Information


Risk Factor: Medium

Score: 5.9


Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

Temporal Vector: E:U/RL:OF/RC:C

CVSS Score Source: CVE-2021-22918


Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: E:U/RL:O/RC:C

CVSS Score Source: CVE-2021-22921

Vulnerability Information

CPE: cpe:/a:nodejs:node.js

Required KB Items: installed_sw/Node.js

Exploit Ease: No known exploits are available

Patch Publication Date: 7/1/2021

Vulnerability Publication Date: 3/12/2021

Reference Information

CVE: CVE-2021-22918, CVE-2021-22921, CVE-2021-23362, CVE-2021-27290

IAVB: 2021-B-0041-S