CVE-2021-31597
xmlhttprequest-ssl: SSL certificate validation disabled by default
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD, GHSA. Más baja según Red Hat (alta).
Descripción
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.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| npm::GitHub Security Advisory npm | xmlhttprequest-ssl | 1.6.1 |
| debian 10 | node-xmlhttprequest-ssl | sin corrección indicada |
| debian 9 | node-xmlhttprequest-ssl | sin corrección indicada |
Referencias
- https://access.redhat.com/security/cve/CVE-2021-31597
- https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2
- https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1
- https://nvd.nist.gov/vuln/detail/CVE-2021-31597
- https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt
- https://security.netapp.com/advisory/ntap-20210618-0004
- https://security.netapp.com/advisory/ntap-20210618-0004/
- https://www.cve.org/CVERecord?id=CVE-2021-31597