CVE-2021-31597
JSON

9.4critical

Improper Certificate Validation in xmlhttprequest-ssl

Severity
9.4critical CVSS:3.1 by NVD
Exploit likelihood
2.04% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-72mh-269x-7mh5

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
xmlhttprequest-ssl (npm)before 1.6.1GitHub Advisory Database
xmlhttprequest-ssl_project xmlhttprequest-sslbefore 1.6.1NVD

All scores

GitHub9.4critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
NVD9.4critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

El paquete xmlhttprequest-ssl versiones anteriores a 1.6.1 para Node.js deshabilita la comprobación del certificado SSL por defecto, porque acceptUnauthorized (cuando la propiedad existe pero no está definida) se considera falso dentro de la función https.request de Node.js. En otras palabras, nunca se rechaza ningún certificado

References

Sources

SourceRecordLicence
CVE ListCVE-2021-31597 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-72mh-269x-7mh5 changed 2023-11-08CC-BY-4.0
NVDCVE-2021-31597 changed 2026-06-17Public domain