CVE-2021-22939 Security feature bypass in Node
Incorrect API usage allows bypassing TLS certificate validation, accepting expired certificates and enabling man-in-the-middle attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22939?
CVE-2021-22939 is a medium-severity vulnerability in Debian Debian Linux, published on 16 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-295
Which versions are affected by CVE-2021-22939?
2 open source packages ship an affected version, including node and node-min. It affects 8 products.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 12.0.0 | 12.22.5, 14.17.5, 16.6.2 |
node-min Bitnami | From 12.0.0 | 12.22.5, 14.17.5, 16.6.2 |
Products include Debian Debian Linux, Netapp Nextgen Api, Nodejs Node.js, Oracle Graalvm, Oracle Jd Edwards Enterpriseone Tools, Oracle Mysql Cluster and 2 more.
How do I fix CVE-2021-22939?
Upgrade node to a fixed version for your release line: 12.22.5, 14.17.5 or 16.6.2.
Is CVE-2021-22939 being exploited?
There is no known exploitation of CVE-2021-22939 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2021-22939, AZL-6744, BIT-node-2021-22939, BIT-node-min-2021-22939, CLEANSTART-2026-AI64836, CLEANSTART-2026-NR88355 and 3 more.