All reports
Critical

Improper Certificate Validation in xmlhttprequest-ssl

Affected versions

Affected versions
< 1.6.1
Fixed version
1.6.1
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-31597

Probability of exploitation in the next 30 days: 2.04%

FIRST EPSS · 2026-11-23

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.

Links