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
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2026-111497 | 9.8 Critical | 2026-10-22 | Google Brotli Unchecked Return Value | Yes |
| 2 | CVE-2023-44487 | 7.5 High | 2023-10-10 | HTTP/2 Rapid Reset Attack | Yes |
| 3 | CVE-2026-21636 | 10.0 Critical | 2026-01-20 | Improper access control | No |
| 4 | CVE-2026-48930 | 9.8 Critical | 2026-06-26 | Improper access control | No |
| 5 | CVE-2024-3566 | 9.8 Critical | 2024-04-10 | Command injection | No |
| 6 | CVE-2024-21896 | 9.8 Critical | 2024-02-20 | Path traversal | No |
| 7 | CVE-2023-39332 | 9.8 Critical | 2023-10-18 | Path traversal | No |
| 8 | CVE-2023-32002 | 9.8 Critical | 2023-08-21 | Critical security flaw | No |
| 9 | CVE-2021-22930 | 9.8 Critical | 2021-10-07 | Use after free | No |
| 10 | CVE-2021-22931 | 9.8 Critical | 2021-08-16 | Improper input validation | No |
Each Node.js CVE explained
1. CVE-2026-111497: Google Brotli Unchecked Return Value
- 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.
2. CVE-2023-44487: HTTP/2 Rapid Reset Attack
- 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)
3. CVE-2026-21636: Improper access control
- 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)
4. CVE-2026-48930: Improper access control
- 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).
5. CVE-2024-3566: Command injection
- 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.
6. CVE-2024-21896: Path traversal
- 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.
7. CVE-2023-39332: Path traversal
- 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.
8. CVE-2023-32002: Critical security flaw
- 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.
9. CVE-2021-22930: Use after free
- 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)
10. CVE-2021-22931: Improper input validation
- 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)
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.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| Node.js 26 (LTS) | May 5, 2026 | Apr 30, 2029 | 26.13.0 | Supported |
| Node.js 25 | Oct 15, 2025 | Jun 1, 2026 | 25.9.0 | End of life |
| Node.js 24 (LTS) | May 6, 2025 | Apr 30, 2028 | 24.22.2 | Supported |
| Node.js 23 | Oct 16, 2024 | Jun 1, 2025 | 23.11.1 | End of life |
| Node.js 22 (LTS) | Apr 24, 2024 | Apr 30, 2027 | 22.23.4 | Supported |
| Node.js 21 | Oct 17, 2023 | Jun 1, 2024 | 21.7.3 | End of life |
| Node.js 20 (LTS) | Apr 18, 2023 | Apr 30, 2026 | 20.20.2 | End of life |
| Node.js 19 | Oct 18, 2022 | Jun 1, 2023 | 19.9.0 | End 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
- Run a supported release and move to the next branch before the current one reaches end of life.
- Apply patch releases promptly.
- Pin and audit your dependencies, and update the vulnerable ones.
- Run applications as an unprivileged user.
- 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.
Related security guides
Few stacks run Node.js alone. These guides cover the technologies it is most often deployed with.
- Express.js vulnerabilities: Express.js is the most popular web framework for Node.js.
- Next.js vulnerabilities: Next.js is the leading React framework for production web apps.
- Docker vulnerabilities: Docker is the standard tool for building and running containers.
- React vulnerabilities: React is Meta's JavaScript library for building user interfaces.
- CouchDB vulnerabilities: Apache CouchDB is a document-oriented NoSQL database with an HTTP API.
- MongoDB vulnerabilities: MongoDB is the most popular document-oriented NoSQL database.
- Angular vulnerabilities: Angular is Google's TypeScript web application framework (AngularJS is its legacy predecessor).
- Vue.js vulnerabilities: Vue.js is a progressive JavaScript framework for user interfaces.
- n8n vulnerabilities: n8n is a workflow automation platform that can be self-hosted.
- FFmpeg vulnerabilities: FFmpeg is the open-source framework for processing audio and video.
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
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: Node.js (opens in a new tab), release and support dates, checked Nov 3, 2026.
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.