NetSight
critical9.4

CVE-2021-31597

Improper Certificate Validation in xmlhttprequest-ssl

Impact

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 packages

EcosystemPackageAffectedFixed in
npmxmlhttprequest-ssl< 1.6.11.6.1

Affected products

VendorProductAffected versions
Xmlhttprequest-Ssl ProjectXmlhttprequest-Ssl
before 1.6.1

Weakness classification

References