{"id":"CVE-2021-31597","published":"2021-04-22T23:52:48Z","modified":"2024-08-03T23:03:33Z","title":"The xmlhttprequest-ssl package before 1.6.1 for Node.js disables SSL certificate validation by default, because…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02039,"percentile":0.81597,"provenance":"source"},"cwes":[],"references":[{"url":"https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt","tags":["x_refsource_MISC"]},{"url":"https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0004/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":16.32}]},"affected":[{"ecosystem":"npm","package":"xmlhttprequest-ssl","vulnerableRanges":["<1.6.1"],"patched":["1.6.1"],"from":["GHSA-72mh-269x-7mh5"],"provenance":"source"}],"summary":{"text":"The xmlhttprequest-ssl package for Node.js, before version 1.6.1, has a flaw where SSL certificate validation is disabled by default because rejectUnauthorized is treated as false within Node.js's https.request function when the property exists but is undefined. As a result, no certificate is ever rejected, and an attacker positioned to intercept traffic can present any certificate without triggering a validation failure, with no special configuration or user interaction required beyond the default settings.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:14Z"},"euvd":{"id":"EUVD-2021-0980","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xmlhttprequest-cve-2020-28502","parents":[{"from":"CVE-2020-28502","to":"CVE-2021-31597","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/XMLHttpRequest.js"],"commits":["https://github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291","https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2"],"basis":"shared function","functions":["XMLHttpRequest"]}]}]}}