All CVEs / Xmlhttprequest-ssl Project
CVE-2021-31597Xmlhttprequest-ssl Project Xmlhttprequest-ssl
Critical 9.4 No auth needed
Follow: this CVE · Xmlhttprequest-ssl Project · Xmlhttprequest-ssl Project Xmlhttprequest-ssl We alert you by email or Slack (account required).
- Priority
- 72
- CVSS 3.1
- 9.4
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Apr 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for Xmlhttprequest-ssl.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | xmlhttprequest-ssl |
< 1.6.1 |
1.6.1 |
npm install xmlhttprequest-ssl@1.6.1 |
Per OSV / GitHub Advisories (GHSA-72mh-269x-7mh5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| xmlhttprequest-ssl_project | xmlhttprequest-ssl | < 1.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Release Notes Third Party Advisory
- people.kingsds.network Exploit Third Party Advisory
- security.netapp.com Third Party Advisory