The November 2026 Next.js security update shipped on November 3, 2026 as 16.4.5 (Active LTS) and 15.5.29 (Maintenance LTS), fixing seven advisories that range from cross-tenant cache leaks to an HttpOnly cookie exposure on Edge routes. If you run Next.js 15.0 through 16.4.4 you should upgrade, but most of the seven bugs only bite specific feature combinations, so the useful question is which ones apply to your app. Next.js 14 and older get no patch at all, and one of the seven advisories reaches back into those versions.

This guide sorts the advisories by the configuration that triggers each one, shows how to find every installed next version across a monorepo from the lockfiles alone, and covers the upgrade path and the checks worth running afterwards. Sources are the official November 2026 security release post and the seven GitHub advisories it links.

What the Next.js security update fixes

Vercel pre-announced the release on October 27 in Upcoming Next.js November Security Release, describing it as seven medium-severity vulnerabilities. The release post published on November 3 labels the first one "High Severity", while the GitHub advisory record for that same issue says Medium with a CVSS 4.0 score of 6.3. I'd go with the advisory database, but either way none of these is an unauthenticated remote code execution bug. The CVE IDs were assigned later, and the GitHub advisories were published between November 16 and November 19.

Advisory CVE What goes wrong Affected range Fixed in
GHSA-mfr8-8qww-v76h CVE-2026-119790 use cache function called through unstable_cache() leaks across root params 16.3.0 – 16.4.4 16.4.5
GHSA-vc7v-qv4w-wrv8 CVE-2026-119351 Nested use cache entries keyed without the inner root param 16.2.0 – 16.4.4 16.4.5
GHSA-rhh4-g77r-r9qj CVE-2026-119349 Distinct binary arguments to use cache collide on one cache key 16.0.0 – 16.4.4 16.4.5
GHSA-vvgp-ww4w-46vf CVE-2026-119350 One GET request poisons a shared fallback shell (self-hosted next start) 16.4.0 – 16.4.4 16.4.5
GHSA-pc58-hwjq-p385 CVE-2026-119348 Forwarded fetch Response keeps compressed framing headers, enabling response desync behind some proxies ≤ 15.5.28 and 16.0.0 – 16.4.4 15.5.29 / 16.4.5
GHSA-f3mh-rxg3-f5g2 CVE-2026-119346 Edge routes echo cookies in x-middleware-set-cookie, readable by same-origin JS 15.0.0 – 15.5.28 and 16.0.0 – 16.4.4 15.5.29 / 16.4.5
GHSA-7qx7-33qx-rqx2 CVE-2026-119347 Image Optimization treats an SVG as AVIF, bypassing dangerouslyAllowSVG: false 15.0.0 – 15.5.28 and 16.0.0 – 16.4.4 15.5.29 / 16.4.5

Version ranges come from the GitHub Advisory Database records as of December 2, 2026. Two details matter. First, four of the seven only affect the 16.x line, because they live in Cache Components and the use cache directive. Second, the response-framing advisory (GHSA-pc58) has no lower bound on the 15.x side, so every older release line, 14.x included, is in range.

Who is actually affected: self-hosted vs Vercel and other platforms

The release post doesn't say Vercel's platform mitigates any of these. What the advisories do say is which ones need self-hosting. I've split them by trigger so you can rule things out quickly.

Bugs that need self-hosting

  • Shared shell cache poisoning (GHSA-vvgp). Needs all of: cacheComponents: true, partialPrefetching unset or false, serving with next start, a dynamic route whose generateStaticParams value wasn't built ahead of time, at least two never-prerendered params under it with a layout reading the shallower one inside Suspense, and a blocking fallback shell. If it applies, an attacker can pin a persistent 404 onto a whole family of URLs, and that survives restarts. The advisory's workaround is partialPrefetching: true.
  • Stale compressed response framing (GHSA-pc58). Applies to self-hosted apps where a route handler or the fetch cache returns an upstream fetch() response unchanged, sitting behind an HTTP/1.1 reverse proxy that queues pipelined responses on a shared backend connection. The advisory is explicit that it doesn't apply to every proxy setup.
  • SVG rejection bypass (GHSA-7qx7). The GitHub description scopes it to self-hosted deployments of the /_next/image optimizer. The attacker needs an image URL on a source you already allow in images.remotePatterns or domains. They serve SVG bytes that get sniffed as AVIF, which means they reach an SVG decoder you had switched off. The advisory frames the result as exposure to parser denial of service and decoder bugs, not as demonstrated XSS or RCE.

Bugs that depend on how you write code, wherever you host

  • The three use cache leaks (GHSA-mfr8, GHSA-vc7v, GHSA-rhh4). These are logic bugs in cache keying, so hosting doesn't matter. All three need Cache Components / use cache on 16.x. GHSA-mfr8 also needs the same cached function to be called directly and through unstable_cache(), and it fires during a cold-start race. Outside that race, Next.js already throws 'use cache' inside unstable_cache() is unsupported, so if you've ever seen that error in your logs, the vulnerable pattern is in your code. GHSA-vc7v needs nested cached functions where the inner one reads a root param (through next/root-params) and returns a mix of resolved and pending values. GHSA-rhh4 needs Uint8Array or Blob arguments that identify a user or account.
  • Edge cookie exposure (GHSA-f3mh). Affects App Router route handlers and Pages Router API routes on the Edge runtime that call NextResponse.cookies.set(). Node.js route handlers and code using cookies().set() weren't affected in the reproduction. Real impact also needs attacker JavaScript running on your origin (an XSS), so treat it as something that makes an XSS worse rather than a way in.

If you're on 16.x, use Cache Components with root params for multi-tenant or multi-locale routing, and self-host, you're in the group that should patch today. If you're on 15.x with Node-runtime route handlers, the honest answer is that you're probably exposed to nothing here, but the patch is a patch-level bump and costs very little to apply.

How to check your Next.js version across a monorepo

Don't trust package.json. A caret range like "next": "^16.4.0" tells you nothing about what was installed, and in a monorepo different workspaces often resolve different majors. The lockfile is the source of truth, and you can read it without installing anything.

Quick checks with the package manager

# npm workspaces: every resolved copy of next, with the path that pulls it in
npm ls next --all

# pnpm: across all workspace projects
pnpm why next -r

# Yarn (Berry)
yarn why next

# Inside a single app, the version Node will actually load
node -p "require('next/package.json').version"

These need node_modules to exist. For CI or a repo audit, read the lockfile directly instead.

Read package-lock.json without installing

jq -r '.packages | to_entries[]
  | select(.key | test("(^|/)node_modules/next$"))
  | "\(.key)\t\(.value.version)"' package-lock.json

When I ran this against a test npm workspace with one app on 16.4.4 and another on 15.5.28, it printed both copies, the hoisted one and the nested one:

apps/web/node_modules/next  16.4.4
node_modules/next   15.5.28

A lockfile scanner for the whole repo

This script needs Node 18 or later and no dependencies. It walks the repo, reads every package-lock.json and pnpm-lock.yaml, and classifies each next version it finds against the patched releases.

// check-next.mjs  —  usage: node check-next.mjs [repo-root]
import { readFileSync, readdirSync, statSync } from 'node:fs';
import { join } from 'node:path';

const root = process.argv[2] ?? '.';
const SKIP = new Set(['node_modules', '.git', '.next', 'dist']);

const parse = (v) => v.split(/[.-]/).slice(0, 3).map(Number);
const lt = (a, b) => {
  const [x, y] = [parse(a), parse(b)];
  for (let i = 0; i < 3; i++) if (x[i] !== y[i]) return x[i] < y[i];
  return false;
};

function verdict(v) {
  if (v.includes('-')) return 'PRERELEASE: move to a stable patched release';
  const major = parse(v)[0];
  if (major >= 16) return lt(v, '16.4.5') ? 'VULNERABLE -> 16.4.5+' : 'ok';
  if (major === 15) return lt(v, '15.5.29') ? 'VULNERABLE -> 15.5.29+' : 'ok';
  return 'UNSUPPORTED (no patch) -> move to 15.5.29 or 16.4.5+';
}

function* walk(dir) {
  for (const name of readdirSync(dir)) {
    if (SKIP.has(name)) continue;
    const p = join(dir, name);
    if (statSync(p).isDirectory()) yield* walk(p);
    else if (name === 'package-lock.json' || name === 'pnpm-lock.yaml') yield p;
  }
}

for (const file of walk(root)) {
  const text = readFileSync(file, 'utf8');
  const found = new Set();
  if (file.endsWith('.json')) {
    for (const [key, meta] of Object.entries(JSON.parse(text).packages ?? {}))
      if (/(^|\/)node_modules\/next$/.test(key)) found.add(meta.version);
  } else {
    for (const m of text.matchAll(/^ {2}'?next@(\d+\.\d+\.\d+[^(:'\s]*)/gm)) found.add(m[1]);
  }
  for (const v of found) console.log(`${verdict(v).padEnd(52)} next@${v}  ${file}`);
}

Output against the same test repos (one npm workspace, one pnpm project already upgraded):

VULNERABLE -> 16.4.5+                                next@16.4.4  mono/package-lock.json
VULNERABLE -> 15.5.29+                               next@15.5.28  mono/package-lock.json
ok                                                   next@16.4.6  pn/pnpm-lock.yaml

The script flags prereleases on purpose. A 16.5.0-canary build sorts above 16.4.5, but that doesn't prove it contains every fix, so treat canaries as unverified and move production apps to a stable patched release. It doesn't parse yarn.lock. For Yarn, yarn why next covers it. If you need an inventory across many repos rather than one, generating an SBOM and querying it scales better. My SBOM guide covering Syft, Trivy and cdxgen shows that workflow.

Upgrade path for 16.x, 15.x and 14.x users

As of December 2, 2026, the latest dist-tag on npm is 16.4.6 (published November 9, after the security release), and the backport tag points at 15.5.29. A 16.5.0 release candidate is in progress, and I wouldn't take a minor upgrade as part of a security patch.

You're on Target Effort
16.0 – 16.4.4 16.4.6 (or at least 16.4.5) Patch/minor bump inside the same major
15.x 15.5.29 Patch bump if already on 15.5; minor bump from older 15.x
14.x or older 15.5.29 as a stopgap, then 16 Major upgrade; no 14.x patch exists
16.5.0 canary/rc Latest stable 16.4.x, or the stable 16.5.0 once released Depends on canary-only features you use

According to the Next.js support policy, 16.x is Active LTS, 15.x is Maintenance LTS with security releases extended through January 31, 2027, and 14.x is unsupported. Being unsupported is why 14.x users don't get a backport of the response-framing fix. If you're still on 14, keep that deadline in mind too: moving to 15.5.29 today buys roughly two months before 15 stops getting security releases as well.

Upgrade commands

# Single app, npm
npm install next@16.4.6

# Single app on the 15 line
npm install next@15.5.29

# npm workspaces: target one workspace at a time when majors differ
npm install next@16.4.6 -w apps/web
npm install next@15.5.29 -w apps/admin

# pnpm workspaces
pnpm --filter web add next@16.4.6
pnpm --filter admin add next@15.5.29

# Yarn (Berry) across every workspace that already depends on next
yarn up next@16.4.6

Upgrade eslint-config-next and @next/* packages (such as @next/bundle-analyzer or @next/mdx) to the matching version at the same time. Mismatched @next/* packages are the most common source of odd build errors after a Next.js bump. Commit the lockfile change, or the CI build will happily install whatever it resolved last time.

If you can't ship the upgrade today

Most of these advisories have a code-level stopgap:

  • Shell poisoning: set partialPrefetching: true in next.config, which is the workaround the advisory gives.
  • unstable_cache race: don't call a use cache function from inside unstable_cache(). The advisory calls this a complete workaround.
  • Edge cookies: move cookie-setting handlers to the Node.js runtime, or set cookies with cookies().set(). The advisory's reproduction didn't leak through either.
  • SVG bypass: narrow images.remotePatterns to hosts you control. The allowlist still applies, so a tight allowlist removes the attacker-controlled source.
  • Response framing: don't return upstream responses unchanged. Rebuilding the response and dropping framing headers is the defensive pattern I use anyway:
// app/api/proxy/route.ts
export async function GET() {
  const upstream = await fetch('https://api.example.com/data');
  const headers = new Headers(upstream.headers);
  // fetch() already decoded the body; don't forward the original framing
  headers.delete('content-encoding');
  headers.delete('content-length');
  headers.delete('transfer-encoding');
  return new Response(upstream.body, { status: upstream.status, headers });
}

None of these replace the upgrade. They narrow the window while the upgrade goes through review.

Verifying the Next.js security update after you upgrade

A version bump that never reached production protects nothing. I run these checks after deploying:

  1. Confirm what was built. next build prints the framework version on its first line (▲ Next.js 16.4.6). Check the build log in CI, not your laptop.
  2. Confirm what's running. For a container, docker run --rm <image> node -p "require('next/package.json').version". For a serverless platform, check the build log of the deployment that's actually live.
  3. Check the Edge cookie header is gone. Hit an Edge route that sets a cookie and make sure the internal header no longer shows up in the response:
curl -s -D - -o /dev/null https://app.example.com/api/edge-login \
  | grep -i '^x-middleware-set-cookie' \
  && echo "STILL EXPOSED" || echo "header not present"
  1. Re-scan the lockfiles with the script above in CI, and fail the build on any VULNERABLE line. That one check also catches a downgrade from a stale branch merge.
  2. Purge shared caches if you were exposed to the use cache or shell bugs. The upgrade fixes how new entries are keyed, but entries written before it can stay valid until they're revalidated or evicted, and the shell-poisoning advisory notes those entries are stored with "revalidate": false. On a self-hosted app with a custom cache handler (Redis or a filesystem cache on a shared volume), flush the Next.js cache keys after deploying. If you use tag-based invalidation, revalidateTag on your tenant-scoped tags works too.

Step 5 is the one people skip. If tenant A's data ended up in a shared entry before the patch, the patch alone won't evict it.

Choosing what to do first

If you're short on time, triage in this order: self-hosted 16.x multi-tenant apps using Cache Components; anything on 14.x or older behind an HTTP/1.1 proxy that forwards upstream fetches; Edge routes that set session cookies; everything else. Once patched, a strict nonce-based Content Security Policy limits what injected same-origin script can do, which is the precondition for the cookie-exposure bug above. Teams weighing where to run Next.js should note that three of these seven bugs are specific to self-hosting, which is a fair point in the Cloudflare Workers vs Vercel comparison. And if the 14.x-is-unsupported problem has you reconsidering the framework entirely, TanStack Start vs Next.js is a reasonable read before you commit to a 14-to-16 migration.

Frequently Asked Questions

Is the November 2026 Next.js vulnerability being exploited?

None of the seven advisories mentions in-the-wild exploitation, and as of December 2, 2026 none of the seven CVEs is in CISA's Known Exploited Vulnerabilities catalog. They're medium-severity, configuration-dependent bugs. Patch them on a normal urgent cycle, not as an incident.

Does Vercel hosting protect me from these Next.js vulnerabilities?

The release post makes no platform-level mitigation claim. Three advisories (shell poisoning, response framing, SVG bypass) are described as affecting self-hosted deployments. The use cache leaks and the Edge cookie exposure come from how your code uses framework features, so they apply wherever you deploy. Upgrade regardless of host.

Is Next.js 14 affected, and will it get a patch?

Next.js 14 is unsupported under the official support policy, and no 14.x patch was released. The response-framing advisory (GHSA-pc58) covers every version up to 15.5.28, which includes 14.x. The fix is to move to 15.5.29 or 16.4.5 and later.

What is the difference between 16.4.5 and 16.4.6?

16.4.5 is the security release from November 3. 16.4.6 followed on November 9 and is the latest tag as of early December 2026. Upgrading to 16.4.6 gets you the security fixes plus the later patch, so there's no reason to pin 16.4.5 specifically.

How do I check which Next.js version is deployed?

Look at the first line of the production build log, which prints the Next.js version, or run node -p "require('next/package.json').version" inside the deployed container. Lockfile scans tell you what will be built next time. The build log tells you what's live now.

Do I need to clear my cache after upgrading?

If you use Cache Components or use cache with root params or binary arguments, yes. The patch fixes how new entries are keyed but doesn't retroactively invalidate entries written before it. Flush your cache handler's Next.js entries or revalidate the affected tags after deploying.

Bottom Line

The November 2026 Next.js security update is a low-drama patch for most teams and an urgent one for a specific group: self-hosted 16.x apps that use Cache Components for multi-tenant or multi-locale routing. Scan your lockfiles rather than package.json, move 16.x to 16.4.6 and 15.x to 15.5.29, flush shared caches if you were in the use cache blast radius, and use this as the push to get anything on 14.x moving. Next.js 15's security support ends January 31, 2027, so the next deadline is already close.