JournalWeb Development

Next.js November 2026 Security Release: Patch 16.4.5 or 15.5.29 Before Cached Data Leaks

Next.js November 2026 Security Release: Patch 16.4.5 or 15.5.29 Before Cached Data Leaks
November 19, 20268 min read

Next.js November 2026 security release: patch 16.4.5 or 15.5.29 to fix cache-disclosure, cookie-header and image-optimisation issues.

Next.js has published a November 2026 security release. The official advisory tells maintainers to patch now: update to version 16.4.5 if you are on the 16.x Active LTS line, or to 15.5.29 if you are on 15.5 Maintenance LTS. The post lists seven issues, including a high-severity cache bug that can disclose one tenant's data to another, plus medium-severity problems around cache keys, self-hosted page shells, cookie headers on Edge routes, and image optimisation.

If you run a Next.js app in production, especially a self-hosted or multi-tenant one, this is a dependency update to schedule this week, not a "we will catch it in the next sprint" item.

Quick answer: Run npm install next@16.4.5 on the 16.x line, or npm install next@15.5.29 on 15.5, then rebuild and redeploy. Prioritise apps that use Cache Components, unstable_cache, self-hosted next start, Edge route handlers that set cookies, or the built-in image optimiser. Read the official advisory before you decide that "we don't use that feature".

The official write-up is here: November 2026 Security Release on nextjs.org.

What the November 2026 release fixes

The advisory groups the issues by impact. The summaries below follow that official wording. They are meant to help you decide whether a given app is in the blast radius, not to reproduce anything.

Cache disclosure across tenants or root parameters

The highest-severity item (GHSA-mfr8-8qww-v76h) affects applications with Cache Components enabled when the same public use cache function is called both directly and from inside unstable_cache, and that function reads a root parameter such as a tenant identifier. During a cold cache fill, a concurrent call can receive another request's result and then store it. Where those root parameters separate tenants, the cached result can contain another tenant's data.

A related medium-severity issue (GHSA-vc7v-qv4w-wrv8) covers nested public use cache functions, where content generated for one root-parameter value can be served to a request for another. The official note is clear that the attacker does not inject arbitrary response content; the application generates the content that is then reused incorrectly. That is still enough to leak tenant-, site- or locale-specific pages.

A third cache issue (GHSA-rhh4-g77r-r9qj) concerns binary arguments passed to use cache. Distinct binary values can produce the same cache identity, so one user can receive another user's cached result if those arguments are what distinguish accounts.

Self-hosted shell poisoning and proxy framing

Self-hosted apps running next start with Cache Components enabled, and with Partial Prefetching disabled or unset, can have a shared page shell poisoned by an unauthenticated request. A crafted URL can store request-specific values in a shell used by other URLs, which may produce the wrong server-rendered content or persistent 404s. The advisory describes a fairly specific route shape; the practical point is that this is a self-hosted, Cache Components problem, and the official tests did not show the same issue when Partial Prefetching was enabled or when the route used build-generated values.

A separate medium-severity issue (GHSA-pc58-hwjq-p385) affects self-hosted applications that return an attacker-controlled fetched Response unchanged. Behind some HTTP/1.1 reverse proxies that pipeline requests on a shared backend connection, decompressed body bytes can be sent with the original compressed framing headers, so responses can be assigned to the wrong clients. It does not apply to every reverse-proxy setup, but it is worth a look if you proxy Next.js yourself.

Cookie values exposed on Edge routes

GHSA-f3mh-rxg3-f5g2 is easier to explain. App Router Edge Route Handlers and Pages Router Edge API routes that set cookies with NextResponse.cookies.set() can expose the serialized cookie in the internal x-middleware-set-cookie response header. Unlike Set-Cookie, that header can be read by same-origin JavaScript, including for cookies marked HttpOnly.

The leak needs a sensitive cookie on an affected response and attacker-controlled JavaScript on the same origin. The official reproduction did not affect Node.js Route Handlers, or routes that set cookies through cookies().set().

SVG bypass in Image Optimisation

GHSA-7qx7-33qx-rqx2 describes an attacker-controlled image from a permitted source being misclassified as AVIF and slipping past images.dangerouslyAllowSVG: false. The optimiser can then decode the original bytes as SVG. The image-source allowlist still applies, and the finding is about extra exposure to SVG parser issues, not a demonstrated XSS or remote code execution on its own. If you use Next.js image optimisation and allow remote or user-supplied images, this is in your patch set.

How to patch

The official commands are:

npm install next@16.4.5 # for the 16.x / 16.5 Active LTS line
npm install next@15.5.29 # for 15.5 Maintenance LTS

Then lock the version, run your test suite, build, and redeploy. If you pin Next.js in Docker images, a CI cache, or a monorepo "workspace" package, update each of those pins. A marketing site updated in one repo and a patient portal left on 16.4.4 is how these releases get missed.

A short checklist after the install

  1. Confirm npm ls next (or the Yarn/pnpm equivalent) shows 16.4.5 or 15.5.29 in the production app, not only in a library package.
  2. If you use Cache Components, use cache or unstable_cache, treat this update as required even if you have not seen a bug report of your own.
  3. If you self-host with next start, review Partial Prefetching and any route that returns a fetched Response unchanged.
  4. If Edge handlers set session or authentication cookies with NextResponse.cookies.set(), plan to move that work to cookies().set() or a Node.js handler as well as patching. Do not leave session cookies sitting in a header that JavaScript can read.
  5. If you optimise user-supplied or remote images, keep dangerouslyAllowSVG off and keep the image-source allowlist tight, in addition to upgrading.
  6. Invalidate any CDN or full-route cache after the deploy, so an old poisoned or cross-tenant entry is not still being served.

Who is less affected, and who is not off the hook

Some of the issues have a narrow shape. You might not use Cache Components, or you might deploy only on a platform that already shipped the patched server for you. You are still not off the hook until you have confirmed the running Next.js version and read the official descriptions against your own app. "We host on a managed platform" only helps if that platform has actually rolled the patch forward to your project.

Older major versions outside the 15.5 and 16.x lines named in the advisory need a separate conversation: upgrade the framework, or accept that you are outside the patched LTS windows the project just shipped.

What this means for product and marketing teams

Next.js is no longer just a front-end choice. A lot of the business and healthcare sites we build use it as the whole application: marketing pages, logged-in portals, and sometimes multi-tenant dashboards. A cache-disclosure bug in that stack is a data issue, not a typo on a landing page.

If another vendor built your Next.js app, send them the official advisory and ask for the version number they will deploy, and when. If you cannot get a straight answer, that is useful information on its own.

How Pengwin Solutions helps

Pengwin Solutions builds and maintains websites and web applications, including Next.js projects, for companies in Hyderabad, Visakhapatnam, Vijayawada and further afield. When a framework security release lands, we patch our maintained applications, check the features named in the advisory, and redeploy with a rollback plan.

If you have a Next.js app and you are not sure which version is in production, contact us. We can identify the running release, apply 16.4.5 or 15.5.29, and review Cache Components, Edge cookies and image configuration with you.

Frequently asked questions

Which Next.js version should I install?

If you are on the 16.x Active LTS line, install 16.4.5. If you are on 15.5 Maintenance LTS, install 15.5.29. Those are the versions named in the official November 2026 security release. Do not stay on an unpatched intermediate release in the same line.

Do I need this if I do not use Cache Components?

Some of the issues are specific to Cache Components, use cache and unstable_cache. Others are not, including the Edge cookie header issue and the image-optimisation SVG bypass. Read the official list against your app rather than skipping the release.

Does this only affect self-hosted Next.js?

No. The shell-poisoning and proxy-framing items are described as self-hosted, but the cache-disclosure, cookie and image issues are not limited to self-hosting in the advisory. Patch the framework wherever the app runs, and confirm your platform has picked up the new version.

Will this fix require code changes, or only a dependency bump?

Many apps will only need the official version bump, a rebuild and a deploy. You should still review Edge cookie-setting code and any handler that returns a fetched Response unchanged, because the advisory points at those patterns as well as at the patched versions.

Can Pengwin patch our Next.js app?

Yes, if we are given access to the repository and the hosting environment, or if we already maintain the app. Write to us on the contact page with the app URL and the current Next.js version if you know it.

Patch Next.js this week, then confirm what is actually running

Framework security releases are easy to postpone because the app "still looks fine". The November 2026 Next.js release is about cached data, cookies and responses going to the wrong place, which is not something you will necessarily see on the homepage. Install 16.4.5 or 15.5.29, rebuild, and confirm the production version. If you want Pengwin Solutions to handle that, get in touch.


Need expert execution?

Ready to accelerate your digital transformation?

Partner with Pengwin Solutions for custom mobile apps, full-stack web applications, and ROI-driven marketing.

Schedule strategy call
Keep reading
WhatsAppContact Us