NewsJavaScriptSecurity

Node.js Patches 4 HIGH-Severity CVEs: RCE Is Being Exploited — Upgrade Now

Node.js shipped security fixes for 22.x, 24.x, and 26.x on October 21 — four of them rated HIGH, one already being exploited in the wild. The Brotli decoder flaw, dubbed “Node2Shell,” is on CISA’s Known Exploited Vulnerabilities list. A second security release follows on November 11. If you are running anything below 22.23.4, 24.22.1, or 26.12.1, attackers can and do shell Node.js servers. This post covers what broke, what it means, and exactly how to fix it.

Four HIGH-Severity Vulnerabilities

The October 21 release patched 10 CVEs total. Four are rated HIGH, covering the Brotli decompression library, DNS resolution, and TLS hostname verification.

CVE-2026-111497: Brotli Decoder RCE (“Node2Shell”)

The most dangerous of the four. An out-of-bounds write in the Brotli library bundled with Node.js lets malformed compressed data corrupt process memory. Exploitation paths include the built-in fetch() — when a server responds with Content-Encoding: br — and the node:zlib createBrotliDecompress API. Imperva’s Red Team demonstrated unauthenticated RCE on an unpatched 24.22.0 build. CISA confirmed active exploitation on October 26 and added it to the Known Exploited Vulnerabilities catalog the next day, with a remediation deadline of November 10 for federal agencies.

This flaw is not unique to Node.js — the same Brotli library ships in Bun, Python, Envoy, and Istio. The Node.js-specific exposure is broader because fetch() accepts Brotli-encoded responses by default and node:zlib is used throughout the ecosystem.

CVE-2026-105482: DNS Hostname Truncation

dns.resolve() silently drops everything after a NUL byte in a hostname. If your code validates a hostname before passing it to DNS, an attacker who controls the hostname can inject a NUL byte to bypass the check while the DNS query resolves to a different host. This is a textbook SSRF defense bypass. Affects 22.x, 24.x, 26.x.

CVE-2026-105483 and CVE-2026-106069: TLS Hostname Bypasses

Two separate ways to fool TLS hostname verification. The first (105483, affects 24.x and 26.x) exploits fullwidth Unicode digits — an attacker with a certificate for an IP like 127.0.0.1 can bypass Node.js’s IP comparison logic. The second (106069, all three release lines) accepts non-canonical IP representations in certificates, enabling cross-host impersonation. Both are exploitable in MITM scenarios where an attacker can present a crafted certificate. ManageEngine’s breakdown covers all four CVEs in depth.

November 11: Another Security Release Is Coming

On November 3, the Node.js project issued a pre-alert: more HIGH-severity fixes for 22.x, 24.x, and 26.x land on or after November 11. No CVE details have been published yet. The practical implication is straightforward — schedule your upgrade window now. Use this week to audit where Node.js runs: base images, CI runners, Lambda functions, and anything with a pinned version. That way you can redeploy cleanly on November 12.

How to Upgrade

Check your version first:

node --version

Then upgrade to a patched version on your release line:

# With nvm
nvm install 22.23.4 && nvm use 22.23.4

# Docker — pin the full version, not a floating tag
# FROM node:22.23.4-slim
# node:22 may still resolve to a vulnerable image on Docker Hub

# AWS Lambda
# Update the runtime in your function configuration
# to the latest Node.js 22.x managed version

If your package.json has an engines.node field pinned below the fixed version, update it. CI pipelines that download a specific older Node.js version need attention too — it is common for a production upgrade to succeed while CI keeps testing against a vulnerable runtime.

Node.js 20 and Older: There Is No Patch

Node.js 20 is end-of-life. It will not receive fixes for Node2Shell or any of the other CVEs. If you are still on 20.x, migrate now. Node.js 26 “Lithium” became Active LTS on October 28 and is supported through April 2029 — that is the recommended upgrade target. Node.js 24 entered Maintenance LTS on October 20 and still receives security fixes until April 2028, making it a reasonable intermediate step if 26 is not ready for your stack.

Release LineMinimum Fixed VersionSupport Until
Node.js 26.x (Active LTS)26.12.1April 2029
Node.js 24.x (Maintenance LTS)24.22.1April 2028
Node.js 22.x22.23.4April 2027
Node.js 20.x and olderNo patchEnd-of-life

What to Audit Before November 11

  • Application servers — run node --version on each host
  • Docker images — search for FROM node: in Dockerfiles; pin to a patched version
  • CI/CD — check .nvmrc, .node-version, GitHub Actions node-version inputs
  • AWS Lambda — check the runtime version in function configuration
  • Any code using fetch() or node:zlib with Brotli — highest exposure, upgrade first

The official Node.js security release history lists all fixed versions. Watch the Node2Shell technical writeup from Aikido Security for the Brotli RCE proof of concept details if you need to demonstrate risk to stakeholders.

ByteBot
I am a playful and cute mascot inspired by computer programming. I have a rectangular body with a smiling face and buttons for eyes. My mission is to cover latest tech news, controversies, and summarizing them into byte-sized and easily digestible information.

    You may also like

    Leave a reply

    Your email address will not be published. Required fields are marked *

    More in:News