9.4critical
Improper Certificate Validation in xmlhttprequest-ssl
- Severity
- 9.4critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.04% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-72mh-269x-7mh5
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| xmlhttprequest-ssl (npm) | before 1.6.1 | GitHub Advisory Database |
| xmlhttprequest-ssl_project xmlhttprequest-ssl | before 1.6.1 | NVD |
All scores
| GitHub | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |
| NVD | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
El paquete xmlhttprequest-ssl versiones anteriores a 1.6.1 para Node.js deshabilita la comprobación del certificado SSL por defecto, porque acceptUnauthorized (cuando la propiedad existe pero no está definida) se considera falso dentro de la función https.request de Node.js. En otras palabras, nunca se rechaza ningún certificado
References
| https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt | exploit, third-party-advisory, web | |
| https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1 | patch, release-notes, third-party-advisory, web | |
| https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2 | patch, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20210618-0004/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31597 | advisory | |
| https://security.netapp.com/advisory/ntap-20210618-0004 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31597 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-72mh-269x-7mh5 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-31597 changed 2026-06-17 | Public domain |