Node.js Multiple Vulnerabilities (August 2021 Security Releases)

critical Nessus Plugin ID 154231

Synopsis

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

Description

The version of Node.js installed on the remote host is prior to 12.22.5 or 14.17.5 or 16.6.2. It is, therefore, affected by multiple vulnerabilities including the following:

- A remote command execution vulnerability exists in Node.js due to insufficient validation of untypical characters in domain names. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. (CVE-2021-22931)

- A security bypass vulnerability exists in the HTTPS API of Node.js. An unauthenticated, remote attacker can exploit this to cause connections to servers with an expired certificate to be accepted. (CVE-2021-22939)

- A use after free vulnerability exists in Node.js. An unauthenticated, remote attacker can exploit this to execute arbitrary code. (CVE-2021-22940)

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

Solution

Upgrade to Node.js version 12.22.5 / 14.17.5 / 16.6.2 or later.

See Also

http://www.nessus.org/u?af34b812

Plugin Details

Severity: Critical

ID: 154231

File Name: nodejs_2021_aug.nasl

Version: 1.5

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 10/19/2021

Updated: 1/9/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2021-22931

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

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

Required KB Items: installed_sw/Node.js

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/11/2021

Vulnerability Publication Date: 8/11/2021

Reference Information

CVE: CVE-2021-22931, CVE-2021-22939, CVE-2021-22940