October 2026 Node.js vulnerability: affected versions and the update to apply

12 min read

Visuel Wayhost bleu nuit titré « Faille Node.js d'octobre 2026 : versions touchées et mise à jour », pictogramme de serveur virtuel

Node.js fixed ten vulnerabilities on October 21, 2026, including Node2Shell, critical and actively exploited: affected versions, exposed apps, how to check and update.

By Mouhamed BANKOLE, CEO at ITNET Technologies · Updated November 9, 2026 · Reading time: 10 min

On October 21, 2026, the Node.js project released security updates fixing ten vulnerabilities, four of them rated high, across the 22, 24 and 26 release lines (nodejs.org announcement). The most severe, CVE-2026-111497, is scored 9.8 out of 10 by Singapore's Cyber Security Agency and can lead to remote code execution (CSA alert). Nicknamed "Node2Shell", it has been actively exploited according to CISA, the US cybersecurity agency, since October 27, 2026 (BleepingComputer). If you run an API, a Next.js site, a bot or a tool like n8n on a server, this Node.js vulnerability most likely affects you. Here is what is confirmed, which versions are affected, how to check yours and what to do today.

In short

  • Node.js fixed ten vulnerabilities on October 21, 2026, four of them rated high, on the 22, 24 and 26 release lines.
  • The safe versions are Node.js 26.12.1, 24.22.1 and 22.23.4 or later; end-of-life versions are also affected and no longer receive fixes.
  • The most severe flaw (CVE-2026-111497) affects Brotli decompression and can lead to remote code execution; nicknamed Node2Shell, it is actively exploited according to CISA since October 27, 2026 (BleepingComputer).
  • On a VPS or dedicated server, updating is your job, including inside your Docker images.
  • Check your version with node -v, update, restart your processes and rebuild your containers.

Contents

  1. What happened with Node.js on October 21, 2026?
  2. Which Node.js versions are affected?
  3. Which flaw is the most severe?
  4. Is your Node.js application exposed to Node2Shell?
  5. What does this change for your applications?
  6. How do you check your Node.js version?
  7. What should you do today?
  8. How do you update Node.js on a VPS or in Docker?
  9. Who has to apply the update, depending on your hosting?
  10. What if your Node.js version is no longer supported?

What happened with Node.js on October 21, 2026?

On October 21, 2026, the Node.js project shipped patched releases for its three supported release lines, fixing ten vulnerabilities (nodejs.org). The fixes landed on the same day as PHP's, a day that French tech outlet Next called a "black day" for cybersecurity (Next).

What is confirmed by official sources:

  • ten CVEs are fixed: four high, three medium and three low (nodejs.org);
  • the 22, 24 and 26 lines are affected, though not all to the same degree (nodejs.org);
  • Hong Kong's CERT rates these flaws as high risk and reports a public proof of concept for CVE-2026-111497 (HKCERT);
  • Singapore's agency advises updating immediately (CSA).

What has changed since: exploitation is now confirmed. CISA added CVE-2026-111497 to its catalog of exploited vulnerabilities on October 27, 2026, with a remediation deadline of November 10, 2026 for US federal agencies (BleepingComputer). Datadog reported in-the-wild exploitation as of October 29, 2026 (Datadog Security Labs). None of the sources consulted describes a specific campaign or victims so far (BleepingComputer).

Which Node.js versions are affected?

Every Node.js version released before the October 21, 2026 fixes is affected, including end-of-life versions that the project no longer patches (nodejs.org).

Node.js lineAffected versionsFixed versionStatus
26.x (Current)before 26.12.126.12.1supported
24.x (LTS)before 24.22.124.22.1supported
22.x (LTS)before 22.23.422.23.4supported
End-of-life linesallnoneno longer supported

Sources: nodejs.org announcement and HKCERT bulletin.

The four high-severity flaws, according to the vendor (nodejs.org):

CVEComponentEffect in briefLines
CVE-2026-111497Brotli decompression (node:zlib)out-of-bounds memory write22, 24, 26
CVE-2026-105482DNS resolution (dns.resolve)truncated hostnames22, 24, 26
CVE-2026-105483TLS checkcertificate accepted for the wrong IP address24, 26
CVE-2026-106069TLS checkIPv4 addresses parsed inconsistently22, 24, 26

Which flaw is the most severe?

The most severe is CVE-2026-111497, an out-of-bounds write in the Node.js Brotli decoder, scored 9.8 out of 10 under CVSS v3.1 by Singapore's agency (CSA).

What we know about it:

  • it is triggered when an application uses node:zlib to decompress Brotli data supplied by a third party (nodejs.org);
  • possible consequences are a crash, leaked process memory or remote code execution (nodejs.org);
  • a public proof of concept exists since October 22, 2026 (IT-Connect);
  • Imperva's Red Team, which named the flaw "Node2Shell", demonstrated code execution on the official Node.js 24.22.0 Docker image (IT-Connect);
  • CISA added it on October 27, 2026 to its catalog of actively exploited vulnerabilities (BleepingComputer).

Analysis: the most exposed applications are those that accept compressed content from outside (APIs, proxies, automation tools that fetch web pages). Since you cannot audit every dependency, updating remains the only reliable answer.

The flaw comes from Google's Brotli library, which is embedded in software other than Node.js; those programs have been patched too (Datadog Security Labs):

SoftwareAffected versionsFixed version
Bun1.0.21 to 1.4.31.4.4
Python Brotli and brotlicffi1.2.0 and earlier1.2.1
.NET 8, 9 and 10before the October 25, 2026 update8.0.33, 9.0.22, 10.0.14
Google Brotli (C library)1.0.3 to 1.0.9, 1.1.0, 1.2.01.0.10, 1.1.1, 1.2.1

Source: Datadog Security Labs.

Is your Node.js application exposed to Node2Shell?

Your application is exposed if it decompresses Brotli data coming from outside, which happens by default with Express 5, body-parser 2.x and the Node.js fetch() function according to Datadog (Datadog Security Labs).

SituationExposed by default?
Express 5 or body-parser 2.x (inherited by Koa and NestJS) receiving compressed bodiesyes
Express 4no: it returns a 415 error for these bodies
Outgoing calls with fetch(): a Content-Encoding: br response is decoded automaticallyyes
axios, got, node-fetchyes, Brotli decoding by default
Plain Node.js HTTP server without a frameworkno, it decompresses nothing
Direct calls to node:zlib on untrusted datayes

Table source: Datadog Security Labs.

Analysis: the path most often overlooked is the outgoing one. An automation tool or a bot that fetches web pages can be affected without receiving a single incoming request.

Until you can update, Datadog lists two temporary measures, noting that they do not protect outgoing calls and may break legitimate clients (Datadog Security Labs):

  • disable body decompression in the Express 5 and body-parser 2.x parsers (inflate: false option);
  • reject the Content-Encoding: br header at the reverse proxy;
  • update as soon as possible: according to the same source, it is the only complete fix (Datadog Security Labs).

What does this change for your applications?

If your server runs an unpatched Node.js version, an attacker could crash your applications, read part of their memory or, in the worst case, run code on the server.

The concrete risks:

  • downtime: an API, site or bot that keeps crashing;
  • leaked secrets: API keys, tokens and environment variables held in memory;
  • server takeover and lateral movement to your databases;
  • bypassed TLS checks for the certificate-related flaws, which affect your applications' outgoing connections.

Typical affected uses: server-rendered Next.js or Nuxt sites, Express or Fastify APIs, self-hosted automation tools such as n8n, bots and workers. To gauge the stakes for a self-hosted AI app, see our guide to hosting an AI application.

How do you check your Node.js version?

Run node -v in a terminal on the server: it prints the exact version, which you compare with the table of fixed versions.

Depending on your setup:

  1. directly on the server: node -v;
  2. inside a Docker container: docker exec <container> node -v, for each container;
  3. with a version manager (nvm, fnm): nvm ls lists every installed version;
  4. in your CI: check the image or action that installs Node.js, often pinned to an old version.

Pro tip: a server can have several Node.js versions. Also check the one used by your process manager (PM2, systemd), not just the one in your shell session.

What should you do today?

Install the fixed version for your release line, restart every Node.js process, then rebuild and redeploy your containers.

The action list, in order:

  1. take stock of the servers, containers and pipelines that use Node.js;
  2. read the vendor's release notes before installing (nodejs.org);
  3. test in a staging environment if your application is critical;
  4. take a snapshot of the server before updating;
  5. update to 22.23.4, 24.22.1 or 26.12.1;
  6. restart your processes (PM2, systemd): an updated but not restarted Node.js stays vulnerable;
  7. check with node -v and watch the logs.
SituationPriority actionSuggested timing
Public API that accepts compressed contentUpdate immediatelytoday
Next.js or Nuxt site in productionUpdate and redeploywithin the day
Internal tool not exposed to the internetScheduled updatethis week
End-of-life versionMove to a supported lineplan it now

How do you update Node.js on a VPS or in Docker?

The method depends on how Node.js was installed: system package manager, version manager or Docker image.

The most common cases:

  • system packages (distribution or Node.js repository): update the nodejs package with your system's package manager, then restart the services;
  • nvm or fnm: install the new version of your line, make it the default and restart your processes with it;
  • Docker: update the base image tag (for example node:22 to the latest 22.x), rebuild the image without cache and redeploy;
  • continuous integration: update the version declared in your configuration files so the next builds use the fixed release.

On a Wayhost VPS, full root access lets you apply these updates yourself, and instant snapshots can be created from the customer area before the operation (checked on October 27, 2026).

Who has to apply the update, depending on your hosting?

On a server you manage yourself, VPS or dedicated, updating Node.js is up to you; on a managed platform it is normally the provider, but check which version you run.

Hosting typeWho updates Node.js?What you need to do
Unmanaged VPSYouUpdate, restart, rebuild containers
Dedicated serverYou (unless you have a managed contract)Same, on every machine
Managed platform (PaaS)The provider, depending on the version you pickedCheck the version and redeploy
Docker containersYou, through the base imageRebuild and redeploy every image

For demanding or numerous applications, a Wayhost physical server offers dedicated CPUs, NVMe storage and included DDoS protection (checked on October 27, 2026). For a brochure or WordPress site with no server-side Node.js, shared web hosting leaves system updates to the host. If you are weighing these options, our guide what is a VPS? compares them.

What if your Node.js version is no longer supported?

Move to a supported release line, because the Node.js project states that end-of-life versions are also affected and will not be patched (nodejs.org).

To prepare the move:

  • list your dependencies and check that they work with Node.js 22 or 24;
  • run your tests on the new version in a separate environment;
  • prefer an LTS line (22 or 24) for production;
  • schedule future upgrades so you never sit on an abandoned line again.

The same logic applies to PHP, whose critical flaws were fixed the same day: see our article on the PHP vulnerability and the update to apply.

Frequently asked questions

What is the October 2026 Node.js vulnerability?

It is a batch of ten vulnerabilities fixed by the Node.js project on October 21, 2026, four of them rated high. The most severe, CVE-2026-111497, affects Brotli decompression and can lead to remote code execution. Nicknamed Node2Shell, it is actively exploited according to CISA (BleepingComputer).

Which Node.js versions should you install?

Versions 26.12.1, 24.22.1 and 22.23.4, or later, fix these flaws. Pick the one for your current release line to limit compatibility risks. End-of-life lines do not get a fix.

How do you know if your server runs a vulnerable version?

Run node -v on the server and in each container. Compare the result with the fixed version for your line. Any lower version is vulnerable.

Is the vulnerability being actively exploited?

Yes. CISA added CVE-2026-111497 to its catalog of actively exploited vulnerabilities on October 27, 2026 (BleepingComputer). A public proof of concept has been circulating since October 22 (IT-Connect). Update without waiting, then restart your processes.

Do you need to restart after updating Node.js?

Yes. Processes that are already running keep using the old version in memory. Restart your services and check the version used by PM2 or systemd.

Are your Docker containers safe if the server is up to date?

No. Each container ships its own Node.js version, separate from the server's. You need to update the base image, rebuild it and redeploy the container.

What if you cannot update Node.js right away?

Reject Brotli-compressed requests (Content-Encoding: br) at the reverse proxy and disable body decompression in Express 5 or body-parser 2.x. These measures do not protect outgoing calls, such as those made with fetch() (Datadog Security Labs). They do not replace the update.

Is your WordPress site affected?

Usually not, because WordPress runs on PHP rather than Node.js. It can be if you use server-side Node.js tools. Do check your PHP version though, since it was patched the same day.

Key takeaways

  • Ten Node.js vulnerabilities were fixed on October 21, 2026, four of them rated high.
  • Versions 26.12.1, 24.22.1 and 22.23.4 or later fix them.
  • CVE-2026-111497 (Node2Shell) is the most urgent: possible code execution and active exploitation confirmed by CISA (BleepingComputer).
  • On a VPS or dedicated server, it is up to you to update, restart and rebuild your containers.
  • End-of-life versions are no longer patched: you need to migrate.

To run your Node.js applications with full root access and snapshots before every update, explore Wayhost VPS.

Article written by Mouhamed BANKOLE, CEO at ITNET Technologies.

Have a specific question?

Our step-by-step articles answer the most common questions.

Knowledge base