# 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…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 13.9%, higher than 96% of CVEs (2026-12-01)
- Published: 2021-08-16T00:00:00.000Z
- Modified: 2026-10-16T09:45:28.344Z
- Also known as: BIT-NODE-2021-22940, BIT-NODE-MIN-2021-22940
- Weaknesses: CWE-416
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- NodeJS Node: from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; from 12.0 before 12.22.5; from 13.0 before 13.*; from 14.0 before 14.17.5; from 15.0 before 15.*; and 1 more
- nodejs node.js: from 12.0.0 before 12.22.5; from 14.0.0 before 14.17.5; from 16.0.0 before 16.6.2
- oracle graalvm: 20.3.3; 21.2.0
- oracle jd_edwards_enterpriseone_tools: up to 9.2.6.1
- oracle peoplesoft_enterprise_peopletools: 8.57; 8.58; 8.59
- netapp nextgen_api: no versions given
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- debian debian_linux: 10.0
- node (Bitnami): from 12.0.0 before 12.22.5; from 14.0.0 before 14.17.5; from 16.0.0 before 16.6.2
- node-min (Bitnami): from 12.0.0 before 12.22.5; from 14.0.0 before 14.17.5; from 16.0.0 before 16.6.2

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/1238162> (advisory, permissions-required, third-party-advisory)
- <https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/> (advisory, patch, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210923-0001/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (advisory, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00006.html> (advisory, mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202401-02> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22940> (web)

## Sources

- CVE List: [CVE-2021-22940](https://www.cve.org/CVERecord?id=CVE-2021-22940), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2021-22940](https://nvd.nist.gov/vuln/detail/CVE-2021-22940), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2021-22940](https://osv.dev/vulnerability/BIT-NODE-2021-22940), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2021-22940](https://osv.dev/vulnerability/BIT-NODE-MIN-2021-22940), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2021-22940 · Whole record: https://cve.day/CVE-2021-22940.json · Rebuilt by cve.day 2026-11-25T22:58:03.260Z
