Vulnerability alerts · 7 min read
Node.js October 2026 security release and the eMudhra certificates: is your app affected?
On 21 October 2026, the same day as the critical PHP patches, the Node.js project shipped security releases for its 22, 24 and 26 lines. They fix 10 vulnerabilities, four rated high, and they stop Node.js from trusting the eMudhra certificates whose private keys were compromised. If your app or any of your tools runs on Node.js, you need to update and redeploy.
The short version
- Affected: Node.js 22.x, 24.x and 26.x before the fixed versions, and every end-of-life version (25, 23, 20 and older).
- Fixed in: Node.js 22.23.4, 24.22.1 and 26.12.1.
- Most serious: a bug in the Brotli decoder that can lead to remote code execution when your app decompresses data an attacker controls.
- The fix: update Node.js, rebuild your Docker images, redeploy. Your code doesn’t change.
- Exploitation: the Node.js team has not reported any attack in the wild so far.
The flaws that matter for a typical web app
Brotli decompression (CVE-2026-111497, high). Malformed Brotli data can make the decoder write past the end of an internal buffer. If your app decompresses Brotli data that comes from outside, with node:zlib, an attacker can crash the process, read its memory or run code. That includes servers that fetch other websites, webhooks or uploads.
TLS hostname checks (CVE-2026-105483, CVE-2026-106069, high). Unusual ways of writing an IP address, such as 0127.0.0.1 or fullwidth digits, can trick Node.js into accepting a certificate issued for another address. It matters if your server makes HTTPS requests to addresses users can choose.
DNS names with a hidden NUL character (CVE-2026-105482, high). dns.resolve*() silently cuts a name at a NUL byte, so attacker.example\0.trusted.example resolves attacker.example. Code that checks a hostname against an allowlist, then resolves it with these functions, can end up talking to a different host.
The other six fixes are medium or low: reused keep-alive connections, IP certificates, repeated random values in startup snapshots, ZIP handling on 26.x and the Permission Model. The official post lists them all.
The eMudhra certificates
On 17 October, Mozilla received a report that the private keys of eight intermediate certificates from eMudhra, a certificate authority trusted by every major browser, had been compromised. With those keys, someone could issue a valid-looking HTTPS certificate for any domain.
Browsers blocked them within days. Servers don’t get that protection automatically: Node.js ships its own list of trusted certificates, and an old Node.js still trusts those eight. An app on an old version that calls an API over HTTPS could accept a forged certificate. The October releases update that list.
Other runtimes that keep their own list, such as Python or Go, need their own update. If your stack mixes them, check each one’s advisory.
What I found on our own servers
ScanMyApp runs on Node.js: the free scan and the code audits both run in Docker containers on a dedicated server. When I checked on 24 October, both images were still on Node.js 24.21.0, the version before the fix.
The Brotli flaw applied to us: our scanner fetches the URLs people submit and decompresses the responses, so it handles data we don’t control. That is the case the advisory describes.
What limited the risk is isolation: the scanner runs in a locked-down container, with a read-only file system, no extra Linux privileges, and a firewall rule that blocks it from reaching our private network. Our size cap on decompressed data doesn’t help here, because the bug happens inside the decoder. We patched both images the same day.
The DNS flaw didn’t affect our code. Worth checking yours if you validate hostnames before fetching them.
One trap worth sharing. I rebuilt with docker compose build --pull, and only one of our two images was rebuilt: the audit image isn’t started by default, so Compose skipped it. Checking the version inside each image is what caught it. And my own laptop was on Node.js 22.14, far older than I thought.
Is your app affected?
Check the version that actually runs in production, not just the one on your laptop.
- On a server or your machine:
node -v. - In Docker:
docker run --rm --entrypoint node your-image -v. Do it for every image, including workers and one-off jobs. - In your repository: look at
.nvmrc,.node-version, theenginesfield inpackage.json, theFROMline of each Dockerfile and your CI settings. - On a hosting platform: check which Node.js version your project is set to, and whether the host has updated it.
You’re fine only on 22.23.4, 24.22.1, 26.12.1 or later in the same line. Anything on Node.js 25, 23, 20 or older gets no fix: move to 24 or 26.
How to update
- Your machine: install the new version with your usual tool, for example
nvm install 24.22.1, or the installer from nodejs.org. - Docker: rebuild with
--pullso Docker fetches the patched base image instead of reusing the cached one, then restart the containers. A floating tag such asnode:24-slimalready points to 24.22.1. - Hosting platforms: set the version explicitly rather than trusting the default. On Cloudflare Workers Builds, which hosts this site, the documented default is 24.18.0, older than the fix; a
.node-versionfile overrides it.
# Pin the patched version for builds (Cloudflare, Netlify, nvm…)
echo 24.22.1 > .node-version
# Rebuild every image on the patched base, then check each one
docker compose build --pull
docker compose build --pull audit # services Compose doesn't start by default
docker compose up -d
docker run --rm --entrypoint node your-image -vThen redeploy. A running process keeps the old Node.js until it restarts.
What this means for your code
Like the PHP flaws, this is a runtime problem: no change in your code fixes it, and updating takes a few minutes. But it’s a reminder that what your server does with outside data matters. Fetching URLs chosen by users, decompressing uploads, validating hostnames: those are the places where a runtime bug turns into an attack, and the places an audit looks at first.
Updated? Run the free scan on your live URL to see what it exposes from the outside, then see what a code audit finds in the code that handles outside data.
