{"id":"CVE-2021-22939","published":"2021-08-16T00:00:00Z","modified":"2025-04-30T22:24:36Z","title":"If the Node.js https API was used incorrectly and \"undefined\" was in passed for the \"rejectUnauthorized\" parameter, no…","vendor":"NodeJS","product":"Node","tier":"tail","description":{"text":"If the Node.js https API was used incorrectly and \"undefined\" was in passed for the \"rejectUnauthorized\" parameter, no error was returned and connections to servers with an expired certificate would have been accepted.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.1473,"percentile":0.96756,"provenance":"source"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/","tags":[]},{"url":"https://hackerone.com/reports/1278254","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210917-0003/","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00006.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202401-02","tags":["vendor-advisory"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":19.35}]},"vendorSlug":"nodejs","affectedVersions":[{"vendor":"NodeJS","product":"Node","versions":[">= 4.0, < 4.*",">= 5.0, < 5.*",">= 6.0, < 6.*",">= 7.0, < 7.*",">= 8.0, < 8.*",">= 9.0, < 9.*",">= 10.0, < 10.*",">= 11.0, < 11.*",">= 12.0, < 12.22.5",">= 13.0, < 13.*"]}],"summary":{"text":"The flaw lies in the Node.js https API, where passing \"undefined\" as the value of the \"rejectUnauthorized\" parameter, which is an incorrect use of the API, causes no error to be returned and leads to connections being accepted from servers presenting an expired certificate. An attacker who can position themselves to intercept or impersonate a TLS server that presents an expired certificate can have the Node.js client accept that connection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:33Z"},"euvd":{"id":"EUVD-2021-10068","exploited":false,"provenance":"source"}}