Next.js Needs Its Fourth Security Fix in Six Weeks
Seven fixes shipped November 3 in 16.4.5 and 15.5.29; four sit in Cache Components.

On November 3 the Next.js team shipped its November security release, fixing seven problems in versions 16.4.5 and 15.5.29. Next.js is the free toolkit for building websites that Jon's site is built on. The team had warned on October 27 that seven medium-severity fixes were coming. A day before the release, 16.4.4 shipped bug fixes only, and its notes said the security fixes would follow.
This is the fourth Next.js security release in six weeks. A critical hole in its next/og image tool was fixed on September 22, a batch of seven followed on September 30, and an unscheduled update on October 14 closed two critical holes that could let an attacker run code on a server. One of those sat in use cache, a line that tells Next.js to save a function's answer and reuse it.
That caching feature is the theme again. Four of the seven new problems live in use cache and Cache Components, the setting that turns it on. In each, a saved answer meant for one visitor, account or language can be handed to another: binary arguments that share one cache key, nested cached functions that drop a route setting, a race when use cache runs inside the older unstable_cache, and a shared page shell that one request can poison.
The other three are narrower. Edge routes, a lighter kind of server code, copied cookies into a header that page scripts can read, even cookies marked HttpOnly, which means hidden from scripts. The image resizer could be tricked into opening an SVG file with SVGs switched off. And apps that pass along another server's reply unchanged could mix up replies between visitors behind certain proxies. Those last two, and the page-shell bug, name self-hosted setups: sites that run their own servers instead of using a host like Vercel.
Jon's agents checked his site the same day. It was on 16.4.2, inside the affected range of all seven, but the fleet found no use cache, no Cache Components and no Edge routes in its code, and it runs on Vercel and only resizes pictures from its own media bucket with SVGs off. None of the seven reached it as built, so the move was routine upkeep, and the site has since moved to 16.4.5.
For anyone else, the first step is a version check with npm ls next. Every 16 release before 16.4.5 and every 15 release before 15.5.29 is in range of at least one of these, and the fix is a free upgrade to next@16.4.5, or next@15.5.29 on 15.5. Searching the code for use cache, cacheComponents and runtime = 'edge' shows which fixes matter: no hits means the four cache bugs and the cookie bug don't apply. If the upgrade has to wait, partialPrefetching: true in the config blocks the page-shell bug, and never calling a use cache function from inside unstable_cache avoids the race. Next.js 16.4 can also hand the job to a coding agent with npx next@canary upgrade --agent=latest, which plans the upgrade and the checks after it. The catch is for apps on 16.3 or older: the fix arrives with a whole minor release of other changes, so the full tests need to run before it ships.
The advisories don't say whether anyone has used these holes against real sites, and GitHub rates the unstable_cache race medium where the team's own post calls it high, so a site that uses that pattern should treat it as the higher of the two. Next.js 16.5 is still in preview builds, and the November post calls 16.4 a long-term support release, so for now 16.4.5 is the line to be on. The team posts its scheduled releases with about a week's notice on its security page.
Sources
- Next.js blog: November 2026 Security ReleasePrimary · Nov 3, 2026
- vercel/next.js release v16.4.5Primary · Nov 3, 2026
- Upcoming Next.js November Security ReleasePrimary · Oct 27, 2026
- vercel/next.js release v16.4.4Primary · Nov 2, 2026
- GitHub advisory GHSA-vcvr-r3jv-pc5j: Remote Code Execution in next/og ImageResponsePrimary · Sep 22, 2026
- Next.js blog: September 2026 Security ReleasePrimary · Sep 30, 2026
- Next.js blog: Next.js Security Update for Upstream VulnerabilitiesPrimary · Oct 14, 2026
- GitHub advisory GHSA-673q-mjm6-r5xr: Unauthenticated Remote Code Execution in use cache functions returning typed arraysPrimary · Oct 14, 2026
- GitHub advisory GHSA-rhh4-g77r-r9qj: Cross-user cache disclosure and poisoning in use cache with binary argumentsPrimary · Nov 3, 2026
- GitHub advisory GHSA-vc7v-qv4w-wrv8: Cache leak across root param values in nested use cache functionsPrimary · Nov 3, 2026
- GitHub advisory GHSA-mfr8-8qww-v76h: Information disclosure across root params when a use cache function is called through unstable_cache()Primary · Nov 3, 2026
- GitHub advisory GHSA-vvgp-ww4w-46vf: Cache poisoning of shared fallback shells in Cache ComponentsPrimary · Nov 3, 2026
- GitHub advisory GHSA-f3mh-rxg3-f5g2: HttpOnly cookie exposure through internal response header on Edge runtime routesPrimary · Nov 3, 2026
- GitHub advisory GHSA-7qx7-33qx-rqx2: SVG rejection bypass in Next.js image optimizationPrimary · Nov 3, 2026
- GitHub advisory GHSA-pc58-hwjq-p385: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responsesPrimary · Nov 3, 2026
- Next.js blog: Next.js 16.4Primary · Oct 6, 2026
- vercel/next.js release v16.5.0-canary.40Primary · Nov 3, 2026
- Next.js blog: security newsPrimary · Oct 28, 2026
Comments
No comments yet.
Sign in to comment. You'll come back to this story.