# CVE-2021-31597: Improper Certificate Validation in xmlhttprequest-ssl

- Severity: Critical 9.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.04%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-22T23:52:48.000Z
- Modified: 2026-06-17T03:52:03.017Z
- Also known as: GHSA-72mh-269x-7mh5
- Weaknesses: CWE-295
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- xmlhttprequest-ssl (npm): before 1.6.1
- xmlhttprequest-ssl_project xmlhttprequest-ssl: before 1.6.1

## Every score

- GitHub: CVSS:3.1 9.4 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.4 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## 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

- CVE List: [CVE-2021-31597](https://www.cve.org/CVERecord?id=CVE-2021-31597), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-72mh-269x-7mh5](https://github.com/advisories/GHSA-72mh-269x-7mh5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-31597](https://nvd.nist.gov/vuln/detail/CVE-2021-31597), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31597 · Whole record: https://cve.day/CVE-2021-31597.json · Rebuilt by cve.day 2026-11-25T22:58:01.012Z
