Web Development

Next.js November 2026 Security Release: Is Your App Affected?

November 29, 20266 min readBy Saad Minhas

Next.js · Security · Next.js 16 · Cache Components · Web Security · Vercel

Next.js November 2026 Security Release: Is Your App Affected?

On 3 November 2026 the Next.js team shipped patches for seven security advisories, one high and six medium. The fixed versions are 16.4.5 and 15.5.29.


Most of the advisories only hit apps that use specific features, so many apps aren't exposed to them. But two weeks later the team published numbers that matter more than any single bug: Next.js had 6 advisories in 2024, 14 in 2025 and 51 so far in 2026. Most were found in old code.


This post covers which apps each advisory affects in plain words, how to upgrade, and what that jump in advisories means if you have a Next.js site you haven't touched in months.


The short answer


  • Upgrade to next@16.4.5 if you're on 16.x, or next@15.5.29 if you're on 15.x.
  • The high-severity bug only affects apps with Cache Components turned on that mix unstable_cache with use cache.
  • Self-hosted apps (next start behind your own proxy) have two extra advisories that don't apply to every setup.
  • If you're on Next.js 14 or older, this release doesn't list a patch for you. Plan a major upgrade.
  • Even if none of this month's bugs apply to you, an app that's months behind has missed earlier fixes too.

Which apps are affected


I've grouped the seven advisories by the feature they need. If you don't use a feature, that advisory doesn't apply to you.


If you use Cache Components (use cache)


These four only matter if you've turned on Cache Components. If you've never written "use cache" in your code, skip this section.


Cross-tenant cache disclosure (High, GHSA-mfr8-8qww-v76h). A public use cache function reads a root parameter, like a tenant ID, and gets called both directly and inside unstable_cache. Under a cold-cache race, one request's result can be served to another tenant. If you run a multi-tenant SaaS on Cache Components, this is the one to patch today.


Nested use cache disclosure (Medium, GHSA-vc7v-qv4w-wrv8). With nested use cache functions, the outer cache entry can be saved before the inner function's dependencies are recorded. Content for one tenant, site or locale can then be shown to another.


Binary arguments in use cache (Medium, GHSA-rhh4-g77r-r9qj). If you pass binary data to a use cache function and that data decides who sees what, different inputs can end up with the same cache key. That allows both leaks and cache poisoning.


Shared shell cache poisoning, self-hosted only (Medium). This needs a very specific setup: self-hosted next start, Cache Components on, Partial Prefetching off, and a route with several levels of dynamic params that weren't generated at build time. If that doesn't describe your app, move on.


If you self-host behind a reverse proxy


Stale compressed response framing (Medium, GHSA-pc58-hwjq-p385). If your app returns a fetched Response from somewhere an attacker controls, unchanged, and you're behind an HTTP/1.1 reverse proxy that reuses backend connections for several clients, a response can leak into another client's request. The team says it doesn't apply to every proxy setup.


If you set cookies in Edge routes


Cookie values in an internal header (Medium, GHSA-f3mh-rxg3-f5g2). In Edge Route Handlers and Edge API routes, NextResponse.cookies.set() also wrote the cookie into the x-middleware-set-cookie header. Same-origin JavaScript can read that header, even for HttpOnly cookies. An attacker needs to run script on your origin first, so on its own it isn't an open door, but it removes a protection you were counting on. Node.js route handlers weren't affected.


If you use next/image with remote images


SVG check bypass (Medium, GHSA-7qx7-33qx-rqx2). An SVG from an allowed remote source could be misread as AVIF and slip past images.dangerouslyAllowSVG: false. It needs an image backend that can decode SVG, and the team notes it didn't show cross-site scripting or code execution on its own.


How to check your version


Run this in your project:


npm ls next

Or check node_modules/next/package.json. What matters is the installed version, not just the range in your package.json.


How to upgrade


# Next.js 16
npm install next@16.4.5

# Next.js 15
npm install next@15.5.29

Also upgrade eslint-config-next to match, then run your build and click through the pages that matter: login, checkout, anything that reads cookies or uses caching.


From Next.js 16.4, next dev and next build warn you when the version you're running has a known advisory. That's worth having on its own.


The team also added an upgrade command built for coding agents:


npx next@canary upgrade --agent

It picks the latest safe release within the oldest major version that has a fix, then hands the upgrade to a coding agent like Claude Code or Cursor. I'd still review the diff yourself.


Hosted on Vercel? The release post doesn't say whether Vercel-hosted apps are already protected. Check Vercel's own announcements, and upgrade anyway. Several of these bugs are in your app's code path, not the platform's.


Why 2026 had 51 advisories


The bigger story is in a post the Next.js team published on 17 November, explaining why the advisory count jumped.


Their answer: AI made finding old bugs cheap. Of the 51 advisories so far in 2026, 70% were in code at least a year old, and 43% were in code three years old or more. These bugs aren't new. They've been there, and now tools can find them quickly.


Many of this year's issues also came from image libraries that Next.js depends on, rather than Next.js itself. The team says it's replacing those image codecs with memory-safe alternatives.


What they're doing about it:


  • A bug bounty on HackerOne.
  • An internal bot that triages and reproduces reports.
  • A manual audit by the security firm Trail of Bits.
  • An AI security review that runs on every Next.js pull request and tries to exploit the change. They say it has caught problems that passed human review and CI.
  • Security releases about once a month, announced in advance so hosting providers can prepare.

What this means if you own a Next.js site


If the people looking for vulnerabilities now have AI tools, "it works, don't touch it" is no longer a safe policy for a website.


It's a common pattern with small business sites. The site gets built and launched, and then nobody updates anything for a year because nothing is visibly broken. With roughly monthly security releases, a site that's a year behind has a long list of known, public bugs.


A simple routine works for most small teams:


  1. Once a month, check the Next.js blog or the GitHub security advisories for new releases.
  2. Upgrade patch versions right away. 16.4.x to 16.4.y is meant to be safe and is usually a five-minute job.
  3. Plan major upgrades (15 to 16) once or twice a year, with time to test.
  4. Turn on Dependabot or Renovate so upgrades show up as pull requests instead of relying on someone to remember.
  5. Keep a short manual test list: sign up, log in, pay, the main form. Run it after every upgrade.

If you skipped some releases, I also wrote about the critical React Server Components vulnerabilities from 2025. If you're still on an affected version, read that one first.


FAQ


What version of Next.js fixes the November 2026 vulnerabilities?

Next.js 16.4.5 for the 16.x line and 15.5.29 for the 15.x line, both released on 3 November 2026.


Is my Next.js app affected if I don't use Cache Components?

Four of the seven advisories need Cache Components (use cache). The other three affect self-hosted apps behind certain reverse proxies, Edge routes that set cookies, and next/image with remote SVG sources. If you use none of those, this release's advisories don't apply, but you should still upgrade to get earlier fixes.


What is GHSA-mfr8-8qww-v76h?

It's the high-severity advisory in the November 2026 release: a cross-tenant cache disclosure in apps that use Cache Components and call a use cache function both directly and inside unstable_cache. It's fixed in 16.4.5 and 15.5.29.


Are Vercel-hosted Next.js apps protected automatically?

The official release post doesn't say. Check Vercel's announcements and upgrade your app anyway, because several of the bugs sit in application code paths.


Why are there so many Next.js security advisories in 2026?

According to the Next.js team, AI tools have made it cheap to find bugs in old code. Of the 51 advisories in 2026, 70% were in code at least a year old. Several also came from upstream image libraries.


Is there a patch for Next.js 14?

The November 2026 release only lists patches for 15.5 and 16.4. If you're on 14 or older, plan an upgrade to a supported version.


Need a hand?


If you have a Next.js app that's fallen behind and you're not sure what an upgrade will break, tell me about it. I'll check what version you're on and what it'll take to get current.

Writing

Notes from building with AI tools, React and production systems.

Get In Touch

Connect

Full Stack Software Engineer passionate about building innovative web and mobile applications.

CEO at Appzivo, the software studio I founded.

© 2026 Saad Minhas. All Rights Reserved.