Skip to content

ArticlesEngineering

Node.js security releases: what changed in 22, 24 and 26

Node.js patched ten security issues on 21 October 2026, including a Brotli decoder flaw and TLS hostname checks. Here is what to update and verify in production.

Written by
Published
Updated
Reading time
3 min
Orange Node.js security releases announcement dated 21 October 2026.
Source: Node.js project, 21 October 2026

On 21 October 2026, the Node.js project published security releases for three supported lines: 22.23.4, 24.22.1 and 26.12.1. Its advisory lists ten issues, including four rated high severity. The same advisory also notes security-related dependency updates to c-ares, CA certificates, OpenSSL, SQLite and Undici, with the affected release lines differing by dependency. If your application runs on an earlier patch version of one of these lines, plan an update and verify the runtime that actually ships to production.

Update the Node.js runtime in the deployed image or host, then rebuild and redeploy the application. Updating package.json dependencies alone does not update Node.js.

Which version should you deploy?

Your Node.js line

Security release

Release status on 21 October 2026

22.x

22.23.4 (opens in a new tab)

LTS

24.x

24.22.1 (opens in a new tab)

LTS

26.x

26.12.1 (opens in a new tab)

Current

Choose the patched version in the line your application already supports. A change from 22 to 24 or 26 is a major version upgrade and deserves its own compatibility testing. The Node.js advisory warns that end-of-life lines can also be affected; they don't receive these supported-line fixes.

What is in the advisory?

The four high-severity entries cover a dns.resolve name truncation issue, two TLS hostname validation issues, and an out-of-bounds write in the Brotli decoder that the advisory describes as permitting remote code execution. The full-width digit TLS issue is listed for 24.x and 26.x, while the other three high-severity entries also include 22.x. Severity is the project's rating, not a guarantee that every application is exploitable.

The medium severity entries involve keep-alive socket handling, certificate validation for noncanonical IPv4 addresses, and repeated values from cached crypto.randomUUID() or randomInt() entropy when user-land startup snapshots or single executable applications are used. The low severity entries concern ZIP header handling on 26.x and two Permission Model behaviors, one of which affects all three lines. See the advisory for the scope of each CVE rather than treating every issue as applicable to every runtime.

Node.js also lists dependency updates in this release: c-ares, CA certificates and Undici across the three lines; OpenSSL on 22.x and 24.x; and SQLite on 22.x. The release notes are the right place to check exact changes for the version you deploy.

Check what is running, then roll out

Run these commands inside the deployed container or host, not only on a developer laptop:

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

If you build containers, pin the patched runtime tag for your supported line and rebuild. For example, a project already tested on Node.js 24 can use:

FROM node:24.22.1-bookworm-slim

Confirm that the specific image tag exists in your registry before changing the Dockerfile. A tag can be published after a runtime release, and a mutable tag can later point to rebuilt bytes; use a digest when your deployment process requires reproducibility. Then test TLS connections, DNS lookups, compression paths and the application's usual integration suite. Roll the new image through staging and production, and check the version in a running production instance after deployment.

If your organization uses custom startup snapshots, single executable applications or the Permission Model, include those paths in the test plan. For an exposed service, prioritize the rollout according to its actual inputs and dependencies; the advisory alone does not establish that a given endpoint is exploitable.

Read the primary sources

High-severity issues by Node.js release line. Source: Node.js security advisory; visual: DelacoTech.

Keep reading

All articles