CVE-2021-31597

xmlhttprequest-ssl: SSL certificate validation disabled by default

Published Apr 22, 2021 CVSS 3.1 · 9.4 Critical EPSS 2.0% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0980 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.
Github GHSA Github GHSA GHSA-72mh-269x-7mh5 Improper Certificate Validation in xmlhttprequest-ssl
History

No history.

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 11:03 PM
Reserved
Apr 22, 2021, 12:00 AM
Status
Modified
Published
Apr 23, 2021, 12:15 AM
Modified
Jun 17, 2026, 3:52 AM
Severity
Important
Public date
Apr 23, 2021, 12:00 AM