Node.js Multiple Vulnerabilities (September 2020 Security Releases)

high Nessus Plugin ID 140795

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 10.22.1 or 12.18.4 or 14.11.0. It is, therefore, affected by multiple vulnerabilities as referenced in the september-2020-security-releases advisory.

- Affected Node.js versions converted carriage returns in HTTP request headers to a hyphen before parsing.
This can lead to HTTP Request Smuggling as it is a non-standard interpretation of the header.
(CVE-2020-8201)

- Node.js is vulnerable to HTTP denial of service (DOS) attacks based on delayed requests submission which can make the server unable to accept new connections. The fix a new http.Server option called requestTimeout with a default value of 0 which means it is disabled by default. This should be set when Node.js is used as an edge server. (CVE-2020-8251)

- libuv's realpath implementation incorrectly determined the buffer size which can result in a buffer overflow if the resolved path is longer than 256 bytes. (CVE-2020-8252)

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 10.22.1 / 12.18.4 / 14.11.0 or later.

See Also

http://www.nessus.org/u?64b99430

Plugin Details

Severity: High

ID: 140795

File Name: nodejs_2020_sep.nasl

Version: 1.10

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 9/25/2020

Updated: 9/11/2023

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.3

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

CVSS Score Source: CVE-2020-8201

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

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

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

CVSS Score Source: CVE-2020-8252

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: 9/15/2020

Vulnerability Publication Date: 9/15/2020

Reference Information

CVE: CVE-2020-8201, CVE-2020-8251, CVE-2020-8252

IAVB: 2020-B-0057-S