← All posts
Supply chain

Node.js shipped ten fixes, and the real risk is still your dependencies

The October Node.js release patches ten flaws including a high-severity Brotli memory write. Here is what to update to, why rebuilding your containers matters, and why the supply-chain attacks hitting npm this year are the larger threat behind the headline.

In the same week as the PHP and SBI news, Node.js shipped a security release fixing ten vulnerabilities, four of them rated high severity. Updating the runtime is the easy, do-it-now half. The half that actually decides whether you get compromised this year is your dependency tree, because the npm supply-chain attacks running through 2026 do not care what version of Node you are on. This post covers both.

The runtime update

Update to one of these and you have the fixes:

Node.js 26.12.1
Node.js 24.22.1
Node.js 22.23.4

The flaw worth naming is CVE-2026-111497, in Brotli decompression: a memory write outside its intended area, which is the kind of bug that can become code execution when an attacker controls the compressed input. The others weaken TLS hostname checks or mishandle DNS names, which is to say they chip at the checks your app trusts to know who it is talking to. The release also refreshes the built-in certificate trust store.

One step people miss: rebuild your container images. Updating Node on your laptop does nothing for a service running a baked-in runtime inside a container. The fix only ships when the image is rebuilt on the patched base and redeployed. A node --version on your machine is not the version in production.

A note on the neighbours, because the headlines run together: the two critical Next.js remote-code-execution fixes from 14 October are a separate thing. Updating Node does not update Next.js. If you run Next.js, move affected apps to 16.4.1 or 15.5.28 as well, as their own dependency.

The part that matters more

A runtime CVE needs an attacker to find and reach a specific flaw. A poisoned dependency runs on your machine because you invited it in. Through 2026 that has been the more productive attack by a wide margin, and a few campaigns show the shape of it:

  • Self-propagating worms in the registry. The Shai-Hulud family steals developer credentials and uses them to publish malicious versions of further packages, so one compromised maintainer becomes many. Singapore's CSA has advised Node teams to review dependencies and rotate exposed credentials.
  • Lifecycle scripts that run before your code. Compromised packages tied to widely used tooling have added preinstall behaviour that downloads a separate runtime and executes an obfuscated payload in developer and CI/CD environments. The install is the attack; you never have to import anything.
  • Script-skipping that is not enough. Newer payloads are built specifically to survive npm ci --ignore-scripts, so the old advice of turning scripts off is a layer, not a wall.

What to actually do

  1. Update the runtime and rebuild the images, as above. That is the fast win.
  2. Pin and lock. Commit your lockfile, and treat an unexpected lockfile change in a pull request as something to read line by line, not approve.
  3. Read a new or updated dependency before you add it — downloads, repo, publish date, and whether the version jump makes sense. Our thirty-second check on an npm package is the routine, and why your dependencies run code before your code does explains the install-script mechanism these attacks abuse.
  4. If you suspect you installed a bad version, assume the environment is compromised. Rotate every credential that machine could see, and rebuild clean rather than trying to clean in place — running the package manager again in a contaminated environment can re-trigger the payload.

The headline this week is a Node release, and yes, update it. But the durable lesson is the one underneath: the runtime is a small, well-watched attack surface, and your dependency tree is a large, trusting one. The attackers moved to the large one years ago.

Supply chainHow-to
Your fingers type lodahs. The install script runs anyway.Try it

Spot the typosquat: eight package names, which one is fake?

Eight install commands, each with one impostor package name hidden among the real ones. Train the instinct that reads a dependency name twice, because the install script runs before any of your code does.

The thirty seconds before install are the last you are in controlHow-to

Check an npm package before you install it

Installing a package runs its code. So the thirty seconds you spend looking at it beforehand are the only thirty seconds where you're still in control. Here's what I actually check, and the commands for each.

Safer than it was, but not because of a VPNHow-to

Is public Wi-Fi safe? What a VPN fixes, and what it does not

Public Wi-Fi is safer than it was, but not because of a VPN. What HTTPS already covers, where the real risks are now, and when a VPN earns its place.