Publishing
Your app's server still runs a Node.js version without the October Brotli fix
Cataloged November 2, 2026 · v0 · Cursor · Replit · Bolt
Symptom
Nothing looks broken. The app builds, deploys, and serves pages. On October 21, 2026 the Node.js project shipped security releases 22.23.4, 24.22.1, and 26.12.1. The most severe fix, CVE-2026-111497 (High), is in the Brotli decoder bundled with Node.js. If the server that runs your app is on an older Node version, it does not have the fix. That includes a Vercel project still set to Node.js 20.x, and a Node server or container you run yourself on a VPS, Railway, Render, Fly, Replit, Docker, or a CI runner. Node.js 20 reached end of life and will not get the fix at all. Nothing in the app tells you which Node version is actually running.
Root cause
The Node.js advisory says a flaw in the Brotli decoder bundled with Node.js lets malformed compressed input write past the end of an internal decoder buffer. An invalid block switch was reported as a temporary need for more input instead of a permanent format error, so the streaming decoder kept appending input bytes to an eight-byte internal buffer. An attacker who can supply Brotli data that an application decompresses with node:zlib can corrupt process memory, which can lead to a crash, disclosure of process memory, or remote code execution. It affects Node.js 26.x, 24.x, and 22.x. Node.js says end-of-life versions are always affected when a security release occurs, and its release table lists v20 (Iron) as end of life. Vercel's security bulletin explains who is exposed. Node.js does not decode Brotli data on its own. Your app is exposed when its code, or a library it uses, decompresses Brotli data an attacker controls, either in a request body or in a response it fetches from another server. fetch() normally asks servers for compressed responses. Only the runtime patch covers fetched responses. Vercel deployed WAF rules the same day that block the inbound attack vector for every project on Vercel, but the WAF does not cover responses your functions fetch from other servers. As of October 28, 2026 at 11am PT, all new deployments on Vercel use a patched Node.js. For new deployments on unpatched versions, Vercel disables Brotli handling for outbound fetch(), node:http, and node:https and asks you to redeploy existing projects to get that protection. Projects on Vercel still on Node.js 20.x must change the Node.js version to 22.x or 24.x, in project settings or engines.node, and redeploy, because Node.js 20 will not receive this fix. Projects on 22.x or 24.x do not need to change their version setting, because Vercel manages patch versions. Anything outside Vercel's managed runtimes must upgrade to 22.23.4, 24.22.1, or 26.12.1. That includes external backends, self-hosted Next.js, container images you build yourself, CI runners, and local development. Container images must be rebuilt on a patched Node base image. For self-hosted Next.js, Next.js does not block Brotli responses in image optimization. The same release also fixed other High issues: TLS hostname verification bypasses for non-canonical IP addresses, CVE-2026-106069 and CVE-2026-105483, and a dns.resolve NUL-byte truncation, CVE-2026-105482. On the 24 line, Node.js 24.22.2 followed on October 28, 2026 with regression fixes, a crash with very large Error.stackTraceLimit values and an AsyncLocalStorage fix. 24.22.1 already has the security fix, but 24.22.2 or later is the version to pick today. NVD says the underlying bug is in Google Brotli 1.0.3 through 1.2.0, fixed in 1.0.10, 1.1.1, and 1.2.1. AWS's bulletin notes it affects Brotli decoding beyond Node.js and recommends checking whether your code or dependencies bundle their own Brotli library.
Before and after
The package.json engines field. Move off Node 20 and redeploy. On Vercel the project setting must match.
Before
"engines": { "node": "20.x" }After
"engines": { "node": "22.x" }Fix prompt
In this project only. Do not scan or test anyone else's server. 1. Find every place this project pins or picks a Node.js version, and report each one with the file and the version it sets. Check package.json engines.node, .nvmrc, .node-version, .tool-versions, Dockerfile FROM node lines, replit.nix and .replit, GitHub Actions setup-node node-version, and any Vercel, Netlify, Railway, or Render settings files in the repo. 2. If this project is hosted on Vercel, tell me to open Project Settings, then Build and Deployment, then Node.js Version. If that setting is 20.x, change it to 22.x or 24.x. Set engines.node in package.json to the same major, for example "22.x" or "24.x". Show me the package.json diff. Do not change a Vercel project that is not this one. 3. If there is a Dockerfile, change the FROM image to a patched tag: node:22.23.4 or a later 22 tag, node:24.22.2 or a later 24 tag, node:26.12.1 or a later 26 tag, or the current node:22, node:24, or node:26 tag. Show me the diff. Tell me to rebuild the image instead of reusing a cached one, with docker build --pull --no-cache (or docker compose build --pull --no-cache if this project uses Compose). 4. If a server, VPS, Replit shell, or CI runner that belongs to this project installs Node itself, use these commands and then confirm the version. With nvm: nvm install 24.22.2 nvm alias default 24.22.2 node -v Use 22.23.4 instead of 24.22.2 to stay on the 22 line, or 26.12.1 to stay on the 26 line. 24.22.1 already has the security fix. 24.22.2 or later is the 24 release to install today. node -v should print v24.22.2 or a later 24 version, v22.23.4 or a later 22 version, or v26.12.1 or a later 26 version. On GitHub Actions, set node-version to that same version in the setup-node step and show me the workflow diff. On Replit, set the Node version in replit.nix or .replit to 22 or 24, then run node -v in the shell. 5. If the project is still on Node.js 20 or older, list what may break when moving to 22 or 24. Read the engines field of each dependency in package.json, and say which packages declare an engines.node range that excludes 22 or 24. Then run install, lint, the build, and the tests, and show me anything that fails. Do not use --force or --legacy-peer-deps to hide a conflict. 6. Search this project's code for zlib.brotliDecompress, createBrotliDecompress, and any other Brotli decoding of user uploads or of data fetched from another server. List each file and the line. Do not change those call sites in this step. 7. Redeploy this project. To confirm the version that is actually running, add a temporary log of process.version on the server, redeploy, show me that log line, then remove the log. Do not log anything else. Do not print keys, tokens, passwords, or environment variable values. Do not edit unrelated files.
Paste this into the coding tool that has your own project open.
2-minute self-check
These steps are for an app you own. Do not run them against someone else's project.
- On Vercel, open your own project's Settings and check the Node.js Version. 20.x means no fix is coming, so move to 22.x or 24.x and redeploy. A deployment created before October 28, 2026 at 11am PT that you have not redeployed is worth redeploying.
- Anywhere you run Node yourself, run node -v on that server or container. 22.x below 22.23.4, 24.x below 24.22.1, 26.x below 26.12.1, or 20.x and older do not have the fix.
- In your own repo, look at the Dockerfile FROM line and the CI node-version. A pinned old tag or a cached image keeps the old Node even after you change nothing else.
- In your own code, search for brotliDecompress and createBrotliDecompress. Those are the spots that decode Brotli, along with any fetch() to other servers.
Common questions
My app is on Vercel. Is Vercel's firewall enough?
It blocks the inbound attack vector for traffic through Vercel's network. Vercel says that does not cover responses your functions fetch from other servers, and it does not replace the Node.js patch. Projects still on Node.js 20.x must switch to 22.x or 24.x and redeploy.
My code never decompresses anything. Am I safe?
Node.js does not decode Brotli on its own. Exposure comes from your code, or a library it uses, decompressing Brotli data an attacker controls, in a request body or in a response the app fetches. Libraries and fetch() count. Updating Node.js is the fix that covers all of them.
Why can't I just stay on Node 20?
Node.js 20 is end of life. Node.js says end-of-life versions are always affected when a security release occurs, and Vercel says Node.js 20 will not receive this fix.