Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-31597

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-31597
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:45 UTC · Revision 1

Source evidence

CVE-2021-31597

core-osv · Original source

Published 23 Apr 2021, 00:15 UTC

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.

osv:CVE-2021-31597
Complete source record
{
  "id": "5dba63d476dfd2c7fb8549cbf09642047bd8f2afb1274c933ecb7b9dff8ee875",
  "url": "https://osv.dev/vulnerability/CVE-2021-31597",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-31597",
    "summary": "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.",
    "evidence": "osv:CVE-2021-31597",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-31597",
      "aliases": [
        "CVE-2021-31597",
        "GHSA-72mh-269x-7mh5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mjwwit/node-xmlhttprequest",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xmlhttprequest-ssl_project:xmlhttprequest-ssl:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.6.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.6.0",
            "1.5.5",
            "1.5.4",
            "1.5.2",
            "1.5.1",
            "1.5.0",
            "1.4.2",
            "1.4.1",
            "1.4.0",
            "1.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31597.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:40.559060831Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20210618-0004/",
        "https://github.com/mjwwit/node-XMLHttpRequest/commit/bf53329b61ca6afc5d28f6b8d2dc2e3ca740a9b2",
        "https://github.com/mjwwit/node-XMLHttpRequest/compare/v1.6.0...1.6.1",
        "https://people.kingsds.network/wesgarland/xmlhttprequest-ssl-vuln.txt"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-31597",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385859,
  "published_at": "2021-04-23T00:15:08.283+00:00"
}