CVE-2021-31597
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.06%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.4 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
- EPSS
- 2.06% probability · 80th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-295
- Affected
- xmlhttprequest-ssl project/xmlhttprequest-ssl
- Source
- cve@mitre.org
References
- https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2Patch, Third Party Advisory
- https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1Patch, Release Notes, Third Party Advisory
- https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txtExploit, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210618-0004/Third Party Advisory
- https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2Patch, Third Party Advisory
- https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1Patch, Release Notes, Third Party Advisory
- https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txtExploit, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210618-0004/Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.