The Node.js Project has published its October 2026 security releases, and self-hosters should treat the update as urgent. The release fixes a high-severity Brotli decoder bug that can lead to remote code execution, along with DNS and TLS validation flaws affecting the supported Node.js 22.x, 24.x and 26.x lines.

If a web application accepts compressed input, resolves attacker-controlled hostnames, terminates TLS, or uses long-lived HTTP connections, updating the runtime is more important than simply rebuilding the application image. The vulnerable code is inside Node.js itself and can affect otherwise well-maintained dependencies.

The most serious issue: Brotli decoder RCE

The headline vulnerability is CVE-2026-111497, a high-severity out-of-bounds write in the Brotli decoder bundled with Node.js. Brotli is commonly used for compressed HTTP responses and application data, and Node exposes decompression through node:zlib.

According to the Node.js advisory, malformed compressed input can make the streaming decoder treat a permanent format error as a request for more data. It then appends bytes beyond an internal eight-byte buffer. Depending on how an application handles the corrupted process, an attacker may cause a crash, disclose process memory or achieve remote code execution.

The attack requires a path for untrusted Brotli data to reach an affected decoder. That condition is realistic in services that accept compressed uploads, proxy content, process archives, or expose decompression through an API. Do not assume that a reverse proxy protects every internal service: the vulnerable operation may happen after the request has passed the proxy.

DNS and TLS bugs also require attention

The October release fixes several other high-severity issues. CVE-2026-105482 affects dns.resolve*() and dns.reverse() when a hostname contains a NUL character. A validated name such as attacker.example\\0.trusted.example may be passed to the resolver as only the prefix, creating a mismatch between the hostname an application checked and the name it actually resolved.

Two TLS issues affect hostname verification. CVE-2026-105483 concerns IPv4 addresses written with fullwidth digits, while CVE-2026-106069 concerns non-canonical IPv4 forms with leading zeros. In both cases, normalization and certificate matching could disagree with the address used for the connection.

There is also CVE-2026-106072, which covers additional non-canonical IPv4 spellings such as hexadecimal or integer forms. These issues matter most to applications that accept user-supplied endpoints, implement allowlists, make server-side requests, or use custom TLS checks.

The release also fixes a keep-alive socket issue, a crypto snapshot entropy-cache problem, dependency vulnerabilities and additional runtime defects. The official advisory lists the complete set of changes and affected versions.

Which Node.js versions are affected?

The main security fixes apply across Node.js 22.x, 24.x and 26.x. The exact patched version depends on the line and the release published for your platform, so use the latest patch release available from the official Node.js download page rather than guessing a version number from a third-party image tag.

Check the runtime in every environment, not just your laptop:

node --version
npm --version
node -p "process.versions"

For Docker deployments, inspect both the running container and the image configured in source control:

docker compose exec app node --version
docker image inspect your-app:latest --format '{{index .Config.Labels "org.opencontainers.image.version"}}'
grep -R "image:.*node\|FROM node" -n compose.yml Dockerfile* . 2>/dev/null

A container rebuilt from an old digest can remain vulnerable even when the tag in a compose file looks current. Rebuild with a fresh base image, test the service, and redeploy the resulting digest.

A safe Docker upgrade sequence

Start by recording the current image and making sure you have a rollback path. Then update the base image to the latest patched release in the Node line your application supports. Avoid jumping from Node 22 to Node 26 during an emergency security rollout unless you have separately tested the major-version migration.

A simple Dockerfile should pin the intended major line while still allowing controlled patch updates:

FROM node:24-bookworm-slim

WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
USER node
CMD ["node", "server.js"]

After changing the base image, rebuild without relying on a stale local layer and run your tests:

docker build --pull --no-cache -t my-app:node24-security-2026-10 .
docker run --rm my-app:node24-security-2026-10 node --version
npm test

For Compose, deploy the tested image and check application logs before removing the previous version:

docker compose pull app
docker compose up -d --force-recreate app
docker compose logs --tail=100 app
curl -fsS https://example.com/health

Keep the old image or deployment directory available until health checks, authentication, uploads, compression and outbound requests have been verified. A rollback is easier when the previous digest is recorded rather than reconstructed from memory.

How to assess your exposure

Search your code and dependencies for direct decompression calls and custom networking paths:

grep -RInE 'createBrotli|brotliDecompress|brotliCompress|zlib|dns\.resolve|checkServerIdentity' \
  --exclude-dir=node_modules --exclude-dir=.git .

This search is only an exposure hint. Frameworks and dependencies may call the affected APIs indirectly. The safer default is to patch every supported Node runtime, then use logs and dependency documentation to identify services that handle untrusted compressed data or user-controlled destinations.

Pay particular attention to image-processing services, file uploaders, API gateways, SSR applications, webhook receivers, link preview services and internal tools exposed through a VPN. Treat internal network access as meaningful: a compromised application may be able to reach another service that accepts compressed input.

After patching, review whether hostname validation and DNS resolution happen in the same canonical form. Avoid accepting arbitrary IP spellings, and prefer URL parsing plus strict allowlists over ad-hoc string checks. For TLS, rely on Node’s standard verification path unless there is a strong reason to customize it.

What developers should test

Run the normal unit and integration suite, then add targeted checks for the boundaries changed by this release:

  • compressed request and response handling;
  • uploads and archive extraction;
  • DNS allowlists and SSRF protection;
  • TLS connections to canonical and rejected host forms;
  • HTTP keep-alive reuse under concurrent load;
  • UUID and random-number generation in snapshots or single executables.

Do not write a proof-of-concept against production systems. Reproduce only in an isolated test environment using benign malformed inputs and the version-specific advisory guidance.

Also update your software bill of materials and deployment records. Security work is incomplete if the patch exists only on a developer workstation while the production container still runs the previous digest.

FAQ: Node.js October 2026 security release

Is every Node.js application remotely exploitable?

No. Exploitability depends on whether an application exposes a vulnerable code path, such as processing attacker-controlled Brotli data. However, the runtime should still be updated because indirect dependency paths are easy to miss.

Does upgrading Node.js 24 to the latest 24.x require code changes?

A patch update is designed to minimize compatibility risk, but test compression, networking, TLS and native dependencies before production rollout.

Should I upgrade to Node.js 26 immediately?

Not necessarily. Use the supported major line your application has tested, then install its latest security patch. A security update and a major-version migration are separate projects.

Is changing node:24 to node:24-bookworm-slim enough?

No. Rebuild with --pull, verify the resulting runtime version and digest, run tests, and redeploy every affected service.

Where is the authoritative information?

The Node.js Project’s October 21, 2026 security release advisory lists the vulnerabilities, affected lines and fixes: https://nodejs.org/en/blog/vulnerability/october-2026-security-releases.

Patch first, then investigate. For most homelabs and web services, a controlled rebuild of the existing Node major line is the fastest way to reduce risk without introducing an unnecessary migration at the same time.