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.
CVE-2021-31597 - High Severity Vulnerability
Vulnerable Library - null
Unmatched Source Files
Found in HEAD commit: cb5e31b8ca63144c8e307adbf6a6f4bf8b822b07
Found in base branch: master
Vulnerable Source Files (3)
octant/web/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js octant/web/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js octant/web/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js
Vulnerability Details
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.
Publish Date: 2021-04-23
URL: CVE-2021-31597
CVSS 3 Score Details (7.4)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31597
Release Date: 2021-04-23
Fix Resolution: xmlhttprequest-ssl - 1.6.1