CVE-2021-31597
Improper Certificate Validation in xmlhttprequest-ssl
9.4
CRITICAL
CVSS 3.1
EPSS 0.18%
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.
How to fix CVE-2021-31597
To remediate CVE-2021-31597, upgrade the affected package to a fixed version below.
- —upgrade to 1.6.1 or later
Is CVE-2021-31597 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 1.6.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |