Skip to content

Improper Certificate Validation in xmlhttprequest-ssl

Critical severity GitHub Reviewed Published May 24, 2021 to the GitHub Advisory Database • Updated Nov 29, 2023

Package

npm xmlhttprequest-ssl (npm)

Affected versions

< 1.6.1

Patched versions

1.6.1

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.

References

Published by the National Vulnerability Database Apr 23, 2021
Reviewed May 20, 2021
Published to the GitHub Advisory Database May 24, 2021
Last updated Nov 29, 2023

Severity

Critical
9.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Weaknesses

CVE ID

CVE-2021-31597

GHSA ID

GHSA-72mh-269x-7mh5

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.