CVE-2021-22939

published 16 Aug 2021 · updated 30 Apr 2025

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.

5.8MediumCVSS 5.3EPSS 15%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 15%. Fixed in 10.*, 11.*, 12.22.5 and 10 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nodejs>=10.0 <10.*, >=11.0 <11.*, >=12.0 <12.22.5, >=13.0 <13.*, >=14.0 <14.17.5, >=15.0 <15.*, >=16.0 <16.6.2, >=4.0 <4.*, >=5.0 <5.*, >=6.0 <6.*, >=7.0 <7.*, >=8.0 <8.*, >=9.0 <9.*10.*, 11.*, 12.22.5, 13.*, 14.17.5, 15.*, 16.6.2, 4.*, 5.*, 6.*, 7.*, 8.*, 9.*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-22939 severity on Zeptric[![CVE-2021-22939](https://zeptric.io/badge/cve/CVE-2021-22939.svg)](https://zeptric.io/cve/CVE-2021-22939)