Upgrade Node.js to a patched version and redeploy
Node.js Brotli flaw (CVE-2026-111497) can leak memory or run code; Node 20 gets no fix · Security incident · Blog (Vercel) · Vercel · Oct 21, 2026
What happened
Vercel's bulletin says Node.js released security updates on 21 Oct for 22.x, 24.x and 26.x. The worst, CVE-2026-111497, is a high-severity flaw in the Brotli decoder: malformed Brotli data from an attacker can leak memory or run arbitrary code in the Node.js process. Vercel added firewall rules for all projects the same day, but says anything outside its managed runtimes must upgrade to 22.23.4, 24.22.1 or 26.12.1, and projects still on Node 20 must switch to 22 or 24 and redeploy, because Node 20 gets no fix.
How to prevent it
Set an exact, supported Node.js version in your project and your host settings, and redeploy when a runtime fix is released. A host's firewall helps but does not replace patching.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I deploy apps built with AI tools (Next.js, Vite or Node backends) and want to make sure I'm not on a vulnerable Node.js version after the Brotli decoder flaw CVE-2026-111497 announced on 21 Oct 2026. 1) Find every place my project sets a Node.js version: package.json engines, .nvmrc, Dockerfiles, CI workflows, and the Node.js version setting in my Vercel or other host project. 2) Tell me which of them use Node 20 or an older 22.x, 24.x or 26.x, and what the patched versions are (22.23.4, 24.22.1 or 26.12.1). 3) Show me how to move to a supported version, rebuild any container images on a patched base image and redeploy. 4) If I run any separate backend or self-hosted Next.js outside my host's managed runtime, remind me to upgrade it too. Explain the plan first. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: leaked secrets & api keys
Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.
A quick checklist before you ship
- Keep secret keys only in server-side environment variables, never in browser or app code.
- Set spend limits and usage alerts with every AI and cloud provider.
- Turn on secret scanning and push protection for your repositories.
- If a key leaks, revoke and replace it first; deleting the file is not enough.
More on this: every leaked secrets & api keys story and our related guide.
Tools involved
Node.js stories, Vercel stories, Next.js stories
Related stories
- Upgrade Next.js to 16.4.1 or later
Critical Next.js RCE in 'use cache' functions affects 16.0.0 to 16.4.0 - If you self-host n8n with several users, upgrade to 1.123.96, 2.47.6, 2.48.3, 3.2.2 or later and check active workflows for triggers using credentials their owner didn't set
n8n let a member activate a workflow using someone else's credential if they knew its ID - If you self-host the LiteLLM proxy with Azure models, upgrade to 1.106.9, 1.108.6, 1.109.1 or later and rotate the master key if low-trust users had access
LiteLLM proxy: a normal chat request could leak the master key and provider API keys through an Azure error
Source: original post on Blog (Vercel) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.