VulnarioBlogNode.js vulnerabilities

Node.js Vulnerabilities: The 10 Most Critical Node.js Security Bugs (CVEs)

Node.js vulnerabilities are security flaws in Node.js that attackers can abuse to steal data, take over a server or interrupt a service. Node.js is a JavaScript runtime for building servers and tools. The National Vulnerability Database (NVD) lists 187 CVEs for Node.js, 19 of them rated critical, and 31 were published in the last 12 months. CISA lists 2 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical Node.js security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Node.js security basics, the current end-of-life dates and a free way to be told about the next Node.js CVE as soon as it is published.

Key takeaways

  • 2 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
  • 19 Node.js CVEs are rated critical (CVSS v3), and 31 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-111497, published Oct 22, 2026.
  • Supported Node.js releases today (per endoflife.date): 26, 24, 22. Releases not on the list are past their announced end of life.
  • You can monitor Node.js for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Node.js CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Node.js CVEs at a glance

Most critical Node.js vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2026-1114979.8 Critical2026-10-22Google Brotli Unchecked Return ValueYes
2CVE-2023-444877.5 High2023-10-10HTTP/2 Rapid Reset AttackYes
3CVE-2026-2163610.0 Critical2026-01-20Improper access controlNo
4CVE-2026-489309.8 Critical2026-06-26Improper access controlNo
5CVE-2024-35669.8 Critical2024-04-10Command injectionNo
6CVE-2024-218969.8 Critical2024-02-20Path traversalNo
7CVE-2023-393329.8 Critical2023-10-18Path traversalNo
8CVE-2023-320029.8 Critical2023-08-21Critical security flawNo
9CVE-2021-229309.8 Critical2021-10-07Use after freeNo
10CVE-2021-229319.8 Critical2021-08-16Improper input validationNo

Each Node.js CVE explained

1. CVE-2026-111497: Google Brotli Unchecked Return Value

  • CVSS 9.8 Critical
  • In CISA KEV (added 2026-10-27)
  • Published 2026-10-22
  • CWE-252
What NVD says
A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 22.23.4; 23.0.0 to before 24.22.1; 25.0.0 to before 26.12.1
What to do
Upgrade to the fixed release for your branch (22.23.4, 24.22.1, 26.12.1) or a later one, then restart the service.

NVD record for CVE-2026-111497 (opens in a new tab)

2. CVE-2023-44487: HTTP/2 Rapid Reset Attack

  • CVSS 7.5 High
  • In CISA KEV (added 2023-10-10)
  • Published 2023-10-10
  • CWE-400
What NVD says
The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on availability.
Affected versions
18.0.0 to before 18.18.2; 20.0.0 to before 20.8.1
What to do
Upgrade to the fixed release for your branch (18.18.2, 20.8.1) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2023-44487 (opens in a new tab)

3. CVE-2026-21636: Improper access control

  • CVSS 10.0 Critical
  • Published 2026-01-20
  • CWE-284
What NVD says
A flaw in Node.js's permission model allows Unix Domain Socket (UDS) connections to bypass network restrictions when `--permission` is enabled. Even without `--allow-net`, attacker-controlled inputs (such as URLs or socketPath options) can connect to arbitrary local sockets via net, tls, or undici/fetch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
25.0.0 to before 25.3.0
What to do
Upgrade to 25.3.0 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-21636 (opens in a new tab)

4. CVE-2026-48930: Improper access control

  • CVSS 9.8 Critical
  • Published 2026-06-26
  • CWE-284
What NVD says
A flaw in Node.js TLS hostname handling can cause Embedded-nul hostnames can lead to silent authority rebinding due to c-string truncation in resolver bindings. This vulnerability affects all supported release lines: **Node.js 22**, **Node.js 24**, and **Node.js 26**.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
22.22.3; 24.16.0; 26.3.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2026-48930 (opens in a new tab)

5. CVE-2024-3566: Command injection

  • CVSS 9.8 Critical
  • Published 2024-04-10
  • CWE-77
What NVD says
A command inject vulnerability allows an attacker to perform command injection on Windows applications that indirectly depend on the CreateProcess function when the specific conditions are satisfied.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 18.20.2; 19.0.0 to before 20.12.2; 21.0.0 to before 21.7.3
What to do
Upgrade to the fixed release for your branch (18.20.2, 20.12.2, 21.7.3) or a later one, then restart the service.

NVD record for CVE-2024-3566 (opens in a new tab)

6. CVE-2024-21896: Path traversal

  • CVSS 9.8 Critical
  • Published 2024-02-20
  • CWE-27
What NVD says
The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve().
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
20.0.0 to before 20.11.1; 21.0.0 to before 21.6.2
What to do
Upgrade to the fixed release for your branch (20.11.1, 21.6.2) or a later one, then restart the service.

NVD record for CVE-2024-21896 (opens in a new tab)

7. CVE-2023-39332: Path traversal

  • CVSS 9.8 Critical
  • Published 2023-10-18
  • CWE-22
What NVD says
Various `node:fs` functions allow specifying paths as either strings or `Uint8Array` objects. In Node.js environments, the `Buffer` class extends the `Uint8Array` class. Node.js prevents path traversal through strings (see CVE-2023-30584) and `Buffer` objects (see CVE-2023-32004), but not through non-`Buffer` `Uint8Array` objects. This is distinct from CVE-2023-32004 which only referred to `Buffer` objects.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
20.0.0 to before 20.8.0
What to do
Upgrade to 20.8.0 or a later release, then restart the service.

NVD record for CVE-2023-39332 (opens in a new tab)

8. CVE-2023-32002: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2023-08-21
  • CWE-288
What NVD says
The use of `Module._load()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. This vulnerability affects all users using the experimental policy mechanism in all active release lines: 16.x, 18.x and, 20.x. Please note that at the time this CVE was issued, the policy is an experimental feature of Node.js.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
16.0.0 through 16.20.1; 18.0.0 through 18.17.0; 20.0.0 through 20.5.0
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2023-32002 (opens in a new tab)

9. CVE-2021-22930: Use after free

  • CVSS 9.8 Critical
  • Published 2021-10-07
  • CWE-416
What NVD says
Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
12.0.0 to before 12.22.4; 14.0.0 to before 14.17.4; 16.0.0 to before 16.6.0
What to do
Upgrade to the fixed release for your branch (12.22.4, 14.17.4, 16.6.0) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-22930 (opens in a new tab)

10. CVE-2021-22931: Improper input validation

  • CVSS 9.8 Critical
  • Published 2021-08-16
  • CWE-170
What NVD says
Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
12.0.0 through 12.12.0; 12.13.0 to before 12.22.5; 14.0.0 through 14.14.0; 14.15.0 to before 14.17.5
What to do
Upgrade to the fixed release for your branch (12.22.5, 14.17.5, 16.6.2) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-22931 (opens in a new tab)

Node.js end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Node.js vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Node.js releases are 26, 24, 22.

Node.js release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Node.js 26 (LTS)May 5, 2026Apr 30, 202926.13.0Supported
Node.js 25Oct 15, 2025Jun 1, 202625.9.0End of life
Node.js 24 (LTS)May 6, 2025Apr 30, 202824.22.2Supported
Node.js 23Oct 16, 2024Jun 1, 202523.11.1End of life
Node.js 22 (LTS)Apr 24, 2024Apr 30, 202722.23.4Supported
Node.js 21Oct 17, 2023Jun 1, 202421.7.3End of life
Node.js 20 (LTS)Apr 18, 2023Apr 30, 202620.20.2End of life
Node.js 19Oct 18, 2022Jun 1, 202319.9.0End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Node.js is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

node -v

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Node.js security checklist

  1. Run a supported release and move to the next branch before the current one reaches end of life.
  2. Apply patch releases promptly.
  3. Pin and audit your dependencies, and update the vulnerable ones.
  4. Run applications as an unprivileged user.
  5. Disable features and functions your application does not need.

Where you run Node.js matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Node.js: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than Node.js. A flaw anywhere in the chain can be the way in, so also review our guides to Express.js vulnerabilities, Next.js vulnerabilities and Docker vulnerabilities.

How to get alerted about new Node.js vulnerabilities

NVD received 31 new Node.js CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Node.js and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Node.js alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Node.js vulnerabilities

What are the most critical Node.js vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Node.js CVEs include CVE-2026-111497 (CVSS 9.8), CVE-2023-44487 (CVSS 7.5), CVE-2026-21636 (CVSS 10.0). The guide above ranks the 10 most critical with affected versions and fixes.

Have Node.js vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 2 Node.js CVEs, including CVE-2026-111497, CVE-2023-44487. Treat these as the highest priority to patch.

How many vulnerabilities does Node.js have?

As of Nov 3, 2026 the National Vulnerability Database lists 187 CVEs for Node.js, with 19 rated critical by CVSS v3. 31 were published in the previous twelve months.

Which Node.js versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Node.js releases as supported: 26, 24, 22. Releases that are not listed are past their announced end of life.

How do I check which Node.js version I run?

Run node -v on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Node.js CVE is published?

Add Node.js to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Node.js and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Node.js secure?

Node.js is as secure as its patch level. NVD published 31 new Node.js CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2026-111497?

CVE-2026-111497 is a critical Node.js vulnerability with a CVSS score of 9.8, published Oct 22, 2026. A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially…

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.