Node.js Brotli Security Flaw: Who Needs to Update and What to Do Now

4 min read

Updated November 2026: Node.js shipped another security release on November 11. The current versions are 22.23.5, 24.22.3 and 26.13.1. These include the October 21 Brotli fix and later security fixes. Upgrade to the current release on your line. Official notes: 22.23.5, 24.22.3, 26.13.1.

If you run a website or app on Node.js, there's one update you shouldn't put off this week. On October 21, Node.js shipped security releases for its 22, 24 and 26 lines. The most serious bug lets an attacker crash a server, read its memory or even run code on it. On October 28, Vercel said every new deployment on its platform now uses the patched Node.js, which is a good sign of how seriously the hosting world is taking it.

You don't need to understand the bug to fix it. But you should know enough to ask your developer the right question: "Are we on the patched version yet?"

The short version

  • On Node.js 22, update to 22.23.4 or newer.
  • On Node.js 24, update to 24.22.1 or newer.
  • On Node.js 26, update to 26.12.1 or newer.
  • On Node.js 20, there is no fix. Node 20 has reached end of life, so you need to move to 22 or 24.

What happened

Node.js comes with a built-in decoder for Brotli, a compression format a lot of websites and APIs use. According to the Node.js security release, broken Brotli data could make that decoder write past the end of a small internal buffer. The bug is tracked as CVE-2026-111497 and rated High.

In plain words, if your app unpacks Brotli data that came from someone else, that person could send a specially made file or response and take over the process. Vercel's security bulletin says researchers showed both memory leaks and command execution on unpatched versions of all three lines.

The same release fixed nine other issues. Two more are rated High and affect how Node.js checks TLS certificates when you connect to an IP address. That is the check that makes sure you're talking to the right server.

Am I affected?

Node.js doesn't decode Brotli on its own. You're exposed when your code, or a library you use, decompresses Brotli data that an outsider controls. That can be an uploaded request body, or a response your server fetches from another site. The second one is easy to miss, because it can happen inside a library without anyone on the team noticing.

So the honest answer for most teams is "maybe", and "maybe" is a good enough reason to patch.

If you're on Vercel

Vercel added firewall rules the same day that block the attack on incoming traffic, and since October 28 all new deployments use a patched Node.js. Two things are still on you:

  • Redeploy your projects so they pick up the patched runtime.
  • If a project is still set to Node.js 20.x, change it to 22.x or 24.x and redeploy. Vercel can't patch Node 20 for you.

If you host it yourself

This is the bigger group, and it's where things get missed. Vercel's bulletin lists the places to check:

  1. Your servers and containers. Rebuild Docker images on a patched Node.js base image and redeploy. An old image keeps the old Node version even if your code is new.
  2. Self-hosted Next.js. Upgrade Node.js itself. Updating Next.js does not fix this one.
  3. Backends behind your main site. APIs and workers you run elsewhere need the update too.
  4. CI runners and laptops. Build machines and local development setups run Node as well.
  5. Node 20 apps. Plan the move to 22 or 24 now. This won't be the last fix Node 20 misses.

To check what you're running, type node -v on the server or inside the container. It takes ten seconds.

What we'd do this week

At Krishiv Labs, this is roughly how we handle it. Check the Node version in every place your app runs, not only production. Patch to the versions above. Redeploy. Then put one person's name next to "keep Node and dependencies updated", because the patch is easy and the forgetting is what causes trouble.

If your app is still on Node 20 and the upgrade looks scary, that's normal. Moving between Node versions is mostly testing, and it's much cheaper to do now than after something goes wrong.

Sources: Node.js October 21, 2026 security releases, Vercel bulletin on CVE-2026-111497.