CVE-2021-31597
Improper Certificate Validation in xmlhttprequest-ssl
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » xmlhttprequest-sslvia npm xmlhttprequest-ssl | < 1.6.1 | 1.6.1 |
| org.webjars.npm » xmlhttprequest-sslvia npm xmlhttprequest-ssl | < 1.6.1 | 1.6.1 |
Blast radius
14% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3 |
| 2 hops | 1 |
| 3 hops | 2 |
| 4 hops | 4 |
| 5 hops | 1 |
Most used dependents
- org.webjars.npm » socket.io-client9 usages
- org.webjars.npm » karma7 usages
- org.webjars.npm » browser-sync7 usages
- org.webjars.npm » socket.io5 usages
- org.webjars.npm » engine.io-client1 usages
- org.webjars.npm » github-com-palantir-blueprint0 usages
- org.webjars.npm » github-com-socketio-engine-io-client0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2021-31597 | nvd.nist.gov |
| Web | mjwwit/node-XMLHttpRequest commit bf53329 | github.com |
| Web | mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1 | github.com |
| Web | wesgarland/xmlhttprequest-ssl-vuln.txt | people.kingsds.network |
| Web | advisory/ntap-20210618-0004 | security.netapp.com |
