CVE Vulnerabilities

CVE-2021-31597

Improper Certificate Validation

Published: Apr 23, 2021 | Modified: Nov 21, 2024
CVSS 3.x
9.4
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
9.4 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The xmlhttprequest-ssl package before 1.6.1 for Node.js disables SSL certificate validation by default, because rejectUnauthorized (when the property exists but is undefined) is considered to be false within the https.request function of Node.js. In other words, no certificate is ever rejected.

Weakness

The product does not validate, or incorrectly validates, a certificate.

Affected Software

NameVendorStart VersionEnd Version
Xmlhttprequest-sslXmlhttprequest-ssl_project*1.6.1 (excluding)
Node-xmlhttprequest-sslUbuntubionic*
Node-xmlhttprequest-sslUbuntufocal*
Node-xmlhttprequest-sslUbuntugroovy*
Node-xmlhttprequest-sslUbuntuhirsute*
Node-xmlhttprequest-sslUbuntutrusty*

Potential Mitigations

References