Home / NodeJS / Node / CVE-2021-22940
CVE-2021-22940: is it exploited, and which versions of NodeJS Node are affected and fixed?
CVE-2021-22940 is an use after free vulnerability in NodeJS Node. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: Node every 4 version, Node every 5 version, Node every 6 version and 10 more (CVE record by hackerone). Fixed in 12.22.5, 14.17.5 and 16.6.2 (CVE record by hackerone). Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 28, 2026, 20:17 UTC and NVD November 19, 2026, 07:55 UTC.
What is CVE-2021-22940?
Node.js before 16.6.1, 14.17.5, and 12.22.5 is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
From the CVE record by hackerone, last updated April 30, 2025, 22:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| NodeJS | Node | every 4 version every 5 version every 6 version every 7 version every 8 version every 9 version every 10 version every 11 version from 12.0 before 12.22.5 every 13 version from 14.0 before 14.17.5 every 15 version and 1 more ranges | 12.22.5, 14.17.5, 16.6.2 |
As the CVE record by hackerone states it, last updated April 30, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nodejs | node.js | from 12.0.0 before 12.22.5 | application |
| nodejs | node.js | from 14.0.0 before 14.17.5 | application |
| nodejs | node.js | from 16.0.0 before 16.6.2 | application |
| oracle | graalvm | 20.3.3 | application |
| oracle | graalvm | 21.2.0 | application |
| oracle | jd edwards enterpriseone tools | through 9.2.6.1 | application |
| oracle | peoplesoft enterprise peopletools | 8.57 | application |
| oracle | peoplesoft enterprise peopletools | 8.58 | application |
| oracle | peoplesoft enterprise peopletools | 8.59 | application |
| netapp | nextgen api | all versions | application |
| siemens | sinec infrastructure network services | before 1.0.1.1 | application |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:38 UTC.
How severe is CVE-2021-22940?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-22940 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 13.9% probability of exploitation activity in the next 30 days, percentile 96.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- https://hackerone.com/reports/1238162
- https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20210923-0001/
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://www.oracle.com/security-alerts/cpujul2022.html
- [debian-lts-announce] 20221005 [SECURITY] [DLA 3137-1] nodejs security update mailing-list
- GLSA-202401-02 vendor-advisory
When was it published, and where is the official record?
- Reserved
- January 6, 2021
- Published
- August 16, 2021, 00:00 UTC
- CVE record updated
- April 30, 2025, 22:24 UTC by hackerone
- NVD
- Modified, last modified June 17, 2026, 03:38 UTC
- Last checked
- CVE list November 28, 2026, 20:17 UTC; NVD November 19, 2026, 07:55 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Node?
- Nov 11, 2026CVE-2026-126051 nodejs node: NULL pointer dereference (crash)
- Nov 11, 2026CVE-2026-123875 nodejs node: NULL pointer dereference (crash)
- Nov 11, 2026CVE-2026-123874 nodejs node: use after free
- Nov 11, 2026CVE-2026-123872 nodejs node: authentication bypass (improper authentication)
- Nov 11, 2026CVE-2026-123877 nodejs node: improper certificate validation
- Nov 11, 2026CVE-2026-123871 nodejs node: information disclosure in error messages
- Nov 11, 2026CVE-2026-123868 nodejs node: denial of service (uncontrolled resource consumption)
- Nov 11, 2026CVE-2026-123867 nodejs node: improper certificate validation
Questions about CVE-2021-22940
Is CVE-2021-22940 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 13.9% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of NodeJS Node are affected by CVE-2021-22940?
Node every 4 version, Node every 5 version, Node every 6 version, Node every 7 version, Node every 8 version, Node every 9 version and 7 more, per the CVE record by hackerone. The tables above give every range the sources list.
Which version fixes CVE-2021-22940?
12.22.5, 14.17.5 and 16.6.2, per the CVE record by hackerone. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-22940?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-22940?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.