CVE-2021-31597
Xmlhttprequest-ssl Project Xmlhttprequest-ssl vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Xmlhttprequest-ssl. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Xmlhttprequest-ssl Project Xmlhttprequest-ssl runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2 · Patch
- github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1 · Patch
- people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt · Exploit
- security.netapp.com/advisory/ntap-20210618-0004/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-31597
- cve.org/CVERecord?id=CVE-2021-31597
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.