CVEvulnerability

CVE-2021-31597

9.4 CRITICAL Published 2021-04-23 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2021-04-23
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
9.4 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS 2.0 ([email protected])
7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
Weaknesses
CWE-295

Description

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.

Affected configurations

• xmlhttprequest-ssl project xmlhttprequest-ssl (< 1.6.1)

Related

Weakness · CWE (1)

  • CWE-295 Improper Certificate Validation weakness

References