Skip to main content
No exploitation reportedFix available

CVE-2021-22940

No exploitation reported by the sources we read.

  • Published2021-08-16
  • Fixed in16.6.2 · 14.17.5 · 12.22.5
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2021-08-1619:15CVE publishedNVD
  2. 2026-10-2319:23EPSS crossed 10 %FIRST EPSS

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-22940?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-22940?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Node.js
BranchAffectedFixed in
16.x≥ 16.0.0, < 16.6.216.6.2
14.x≥ 14.0.0, < 14.17.514.17.5
12.x≥ 12.0.0, < 12.22.512.22.5
Oracle peoplesoft enterprise peopletools
BranchAffectedFixed in
8.57= 8.57no fix published
8.58= 8.58no fix published
8.59= 8.59no fix published
Oracle graalvm
BranchAffectedFixed in
20.3= 20.3.3no fix published
21.2= 21.2.0no fix published

4 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nodejsAlmaLinux:8all versions · fixed in 1:12.22.5-1.module_el8.4.0+2529+af52a4c7and 3 other packages
  • nodejsAlmaLinux:8all versions · fixed in 1:12.22.5-1.module_el8.5.0+85+79a7b441and 2 other packages
  • nodejs-nodemonAlmaLinux:8all versions · fixed in 2.0.3-1.module_el8.4.0+2521+c668cc9f
  • nodejs-packagingAlmaLinux:8all versions · fixed in 17-3.module_el8.3.0+2023+d2377ea3
  • nodejs-packagingAlmaLinux:8all versions · fixed in 17-3.module_el8.4.0+2224+b07ac28e
  • nodejs-packagingAlmaLinux:8all versions · fixed in 17-3.module_el8.4.0+2521+c668cc9f
  • nodejs-packagingAlmaLinux:8all versions · fixed in 23-3.module_el8.4.0+2522+3bd42762
  • nodejs-packagingAlmaLinux:8all versions · fixed in 23-3.module_el8.5.0+254+b4526b16

2 more package ranges on OSV.dev

Full record on NVD

Fix

  1. Update Node.js to 16.6.2 · 14.17.5 · 12.22.5

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • NVDCVSS 3.17.5read 2026-10-23
  • NVDCVSS 2.05read 2026-10-23
  • CNAweakness (CWE)CWE-416read 2026-10-23
  • NVDweakness (CWE)CWE-416read 2026-10-23
  • FIRST EPSSEPSS score13.9 %read 2026-10-23
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2021-08-16
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

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.

Is CVE-2021-22940 actively exploited?

Active exploitation of CVE-2021-22940 has not been confirmed. Its EPSS score was 13.9% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-22940?

CVE-2021-22940 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running Node.js? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month