GitHub Advisoryadvisory · npm
GHSA-72mh-269x-7mh5 Improper Certificate Validation in xmlhttprequest-ssl
CRITICAL
Official page ↗
- Aliases
- CVE-2021-31597
- Ecosystem
- npm
- Packages
- xmlhttprequest-ssl
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
- Weaknesses
- CWE-295
- Reviewed
- 2021-05-20
Affected packages
• npm xmlhttprequest-ssl: < 1.6.1 → fixed in 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.
Related
Alias · CVE (1)
- CVE-2021-31597 The xmlhttprequest-ssl package before 1.6.1 for Node.js disables SSL certificate validation by default, because rejectUnauthorized (when… vulnerability
Weakness · CWE (1)
- CWE-295 Improper Certificate Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-31597 advisory
- https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2 web
- https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1 web
- https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt web
- https://security.netapp.com/advisory/ntap-20210618-0004 web