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

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

Source: original post on Blog (Vercel) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.