Upgraded Next.js to 16.4.1? November's Fixes Need 16.4.5 (2026)

If you upgraded Next.js to 16.4.1 for the October RCE, you did the right thing, and you're exposed again. On 2026-11-03, Next.js shipped its November security release: seven advisories, every one of which affects 16.4.1. The fix is 16.4.5 on the 16 line and 15.5.29 on the 15 line.

That makes three security releases in five weeks (September 30, October 14, November 3), each fixed on a different version. This page tracks the last two. We updated it on 2026-11-13.

TL;DR

November 3, 2026: seven advisories, fixed in 16.4.5 and 15.5.29. The serious ones leak one user's or tenant's cached data to another, and need Cache Components (use cache). One more exposes HttpOnly cookies set from Edge routes. October 14, 2026: a critical use cache RCE (GHSA-673q-mjm6-r5xr, CVSS 9.5) and a Server Actions DoS (GHSA-p3m5-59mp-jv5r, CVSS 8.2), fixed in 16.4.1 and 15.5.28. To clear both, you need 16.4.5 or later, or 15.5.29 on the 15 line. On Netlify, also redeploy so the adapter reaches 5.16.6, and purge branch-deploy and Deploy Preview caches.

The version trap, in one table

Every row below is from the npm registry. The pattern is that each fix lands one release after people stop looking.

VersionPublishedOctober fixesNovember fixes
16.3.82026-09-30NoNo
16.4.02026-10-06NoNo
16.4.12026-10-14YesNo
16.4.42026-11-02YesNo
16.4.52026-11-03YesYes
16.4.62026-11-09YesYes (latest on 2026-11-13)
15.5.282026-10-14YesNo
15.5.292026-11-03YesYes

Look at 16.4.4. It shipped the day before the fix, so "I'm on the newest 16.4" was briefly the wrong answer, exactly like 16.4.0 was in October.

November 3: seven advisories

Next.js announced the release a week early, on October 27, as "seven medium vulnerabilities." The release post then labels one of them high severity, while its own GitHub advisory rates it Moderate (CVSS 6.3). The sources disagree on the label, not on the fix.

AdvisoryWhat it isAffectedFixed in
GHSA-mfr8-8qww-v76hA use cache function called both directly and through unstable_cache can hand one tenant's cached result to another during a cold cache fill16.3.0 to 16.4.416.4.5
GHSA-vc7v-qv4w-wrv8Nested use cache functions can serve content generated for one root param (tenant, site, locale) to another16.2.0 to 16.4.416.4.5
GHSA-rhh4-g77r-r9qjDistinct binary arguments to a use cache function can collide, so one user gets another's cached result16.0.0 to 16.4.416.4.5
GHSA-vvgp-ww4w-46vfA crafted URL poisons a shared page shell in apps using Cache Components (the advisory names self-hosted next start; Netlify says its platform is affected too)16.4.0 to 16.4.416.4.5
GHSA-f3mh-rxg3-f5g2Cookies set with NextResponse.cookies.set() in Edge routes leak into a header same-origin JavaScript can read, HttpOnly or not15.0.0 to 15.5.28, 16.0.0 to 16.4.415.5.29, 16.4.5
GHSA-7qx7-33qx-rqx2An image from an allowed source can be misread as AVIF and slip an SVG past dangerouslyAllowSVG: false15.0.0 to 15.5.28, 16.0.0 to 16.4.415.5.29, 16.4.5
GHSA-pc58-hwjq-p385Self-hosted apps that pass a fetched Response straight through can mix up clients' responses behind certain HTTP/1.1 proxiesup to 15.5.28, 16.0.0 to 16.4.415.5.29, 16.4.5

None of these is remote code execution. The cache ones are the ones that matter, because the failure is quiet: a page that should show your account renders someone else's, and nothing errors.

Which one actually reaches an AI-built app

The cache leaks need Cache Components. If your next.config doesn't turn on cacheComponents and nothing in the code says "use cache", the four cache advisories don't apply. If it does, these are the ones to take seriously, especially in a multi-tenant app where a root param like [team] or [workspace] is the only thing separating customers.

The cookie one needs two things. An Edge route (export const runtime = "edge", or runtime: "edge" in a Pages Router API route's config) that sets a sensitive cookie with NextResponse.cookies.set(), and attacker JavaScript already running on your origin. On Netlify, Netlify says cookies set in Middleware are affected too. The advisory is explicit that it isn't a way to run JavaScript on its own. What it does is undo HttpOnly, the flag whose whole job is to keep a session cookie away from an XSS bug.

The rest are narrow. The SVG bypass and the response mix-up both need specific self-hosted setups. Upgrade anyway; you're upgrading for the others.

Netlify's notice for this release says upgrading Next.js alone doesn't fix the Middleware cookie case there: the adapter, @netlify/plugin-nextjs, has to reach 5.16.6. It updates on redeploy if it's auto-installed. If you pinned it, bump it yourself. A new deploy clears the cache for its own deploy context, but per Netlify a production deploy does not clear branch deploys or Deploy Previews, and responses opted out with Netlify-Cache-ID persist across deploys. Purge those separately.

October 14: the RCE and the DoS (still current)

If you're upgrading from anything below 16.4.1 or 15.5.28, these two apply to you as well. The October update included two fixes "postponed from the September security release due to upstream dependency delays," per the October 14 announcement.

AdvisorySeverityWhat it isAffectedFixed in
GHSA-673q-mjm6-r5xrCritical, CVSS 9.5Unauthenticated RCE when a use cache function returns multiple typed arrays>=16.0.0, <=16.4.016.4.1
GHSA-p3m5-59mp-jv5rHigh, CVSS 8.2Crafted requests pin the CPU on any App Router app with a Server Action13.0.0 to 15.5.27, 16.0.0 to 16.4.015.5.28, 16.4.1
CVE-2026-96889CriticalRCE through SVG in an upstream image library, on glibc-based Linuxsee our sharp postsharp 0.35.5+, or Next 16.4.1 / 15.5.28

The RCE needs App Router with Cache Components and a use cache function that returns binary buffers. That's a narrow shape, but the advisory says to "upgrade immediately even if your application does not have similar functions." "We don't have that pattern" is a claim about every file in a codebase you didn't write line by line.

The DoS has a much lower bar: App Router plus one Server Action. When you ask Cursor, v0, Bolt or Claude Code for a contact form or a waitlist signup, the idiomatic answer is a "use server" function, so most AI-built App Router apps are in scope. On a serverless host an attacker pinning your CPU costs you money as well as uptime.

The two-minute check

1

Find the version you actually run, not the one you asked for.

Terminal
npm ls next      # or: pnpm why next / yarn why next

On the 16 line, anything below 16.4.5 needs the upgrade. On the 15 line, anything below 15.5.29.

2

See which bugs you've actually been exposed to. You're upgrading either way; this tells you whether to worry about what already happened.

Terminal
# Cache Components on? Then the November cache advisories apply
grep -rnE "cacheComponents|[\"']use cache(:[^\"']*)?[\"']" . \
  --include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' \
  --exclude-dir=node_modules --exclude-dir=.next

# Edge routes (App or Pages Router) that set cookies: the HttpOnly exposure
grep -rlE "runtime\s*[:=]\s*[\"']edge[\"']" . \
  --include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' \
  --exclude-dir=node_modules --exclude-dir=.next \
  | xargs -r grep -l "cookies.set"
# On Netlify, also check middleware.ts / middleware.js for cookies.set

# Server Actions: the October DoS if you were below 16.4.1 / 15.5.28
grep -rlE "[\"']use server[\"']" . \
  --include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' \
  --exclude-dir=node_modules --exclude-dir=.next

A hit is a yes. No hits isn't proof of a no, which is the other reason to upgrade regardless.

3

Upgrade, redeploy, and clear the cache.

Terminal
npm install next@16.4.6      # 16.4.5 or later; next@15.5.29 on the 15 line
npm ls next                  # confirm the lockfile moved
npm run build

Copy the version from your terminal, not from the Next.js post: its own install snippet labels next@16.4.5 as "for 16.5". If the cache advisories applied to you, purge your CDN or data cache after the deploy so nothing poisoned survives it. On Netlify, follow its notice: purge branch and Deploy Preview caches too, and delete public deploy previews built before the fix.

Why this keeps slipping through

Exact pins. create-next-app writes an exact version ("next": "16.4.1"), not ^16.4.1. Dependabot or Renovate will open a PR, but npm update on its own won't move you, and plenty of AI-built projects have no update bot at all.

"I already patched this month." Three releases in five weeks is a lot of "Next.js security update" headlines, and it's very natural to assume the newest one is the one you already handled. Compare your version to the table above, not your memory of the headline.

To see what version a live Next.js site reports, open its browser console and type window.next.version. It's a quick way to check a deploy (or a client's app) without the source. Treat it as a hint: what's actually running on the server is what the lockfile says at build time.

What CheckYourVibe sees here

Our scanner works from the outside, the way an attacker would. It can tell a site runs Next.js, and it flags the client-side problems these apps usually ship with: keys in the bundle, missing headers, exposed source maps. It can't tell whether you use use cache or set cookies from an Edge route, because that lives in server code.

So this one is a lockfile check, not a scan finding. Run step 1 above. If the version is in range, upgrade, and then run a scan to catch the things a framework upgrade doesn't fix.

Is Next.js 16.4.1 safe?

Not as of November 3, 2026. 16.4.1 fixed the October 14 RCE and Server Actions DoS, but all seven advisories in the November 3 security release affect 16.4.1 through 16.4.4. The fix on the 16 line is 16.4.5 or later, and 16.4.6 was the latest release on npm when we checked on 2026-11-13.

Is Next.js 16.3.8 safe?

No. 16.3.8 fixed the September 30 issues, but the October 14 use cache RCE and Server Actions DoS both affect it, and so do six of the seven November advisories. There is no 16.3.9, so the only fix on the 16 line is a jump to 16.4.5 or later.

I'm on Next.js 15. Am I affected?

By some of it. The October Server Actions DoS affects 13.0.0 through 15.5.27, and three November advisories (Edge cookie exposure, SVG rejection bypass, and response injection behind certain proxies) affect 15.x through 15.5.28; the response-injection one reaches older lines too. The use cache issues are 16-only. 15.5.29 fixes everything that applies to the 15 line.

Does hosting on Vercel or Netlify protect me?

Don't assume it does. These are bugs in the framework code your app runs, so upgrade and redeploy wherever you host. Netlify says three of the November issues don't affect its platform, but it also says its adapter must be on 5.16.6, that upgrading Next.js alone does not fix the Middleware cookie case there, and that branch-deploy and Deploy Preview caches need a separate purge.

Why didn't npm update fix it?

create-next-app writes an exact version like 16.4.1 into package.json, not a caret range, so npm update stays put. Even with a caret range, your lockfile keeps the old version until you run npm install next@16.4.5 or later.

Upgraded? Now check what the framework can't fix

CheckYourVibe scans your live app for exposed keys, missing headers and leaky bundles, in plain English.

Vulnerability Guides

Upgraded Next.js to 16.4.1? November's Fixes Need 16.4.5 (2026)