Blog Home
Web Development

Next.js Security Update: How to Keep Your App Patched

Next.js security update: the November 2026 release fixed seven issues in 16.4.5 and 15.5.29. Check your version, patch safely and see what is supported.

OGOGEN Editorial Team8 min read
Illustration for: Next.js Security Update: How to Keep Your App Patched

The latest Next.js security update is the November 2026 security release of 3 November, which fixed seven vulnerabilities in versions 16.4.5 and 15.5.29. If your website or web app runs on Next.js 15 or 16, upgrade to at least those versions; the current stable release on npm is 16.4.6. The October release before it fixed two critical remote code execution flaws, so any app still below 16.4.1 or 15.5.28 is at higher risk. Next.js 14 and older no longer get security fixes under the official support policy, so apps on those versions need a planned upgrade.

Last reviewed: 29 November 2026. Based on the Next.js blog, the Next.js support policy and the GitHub security advisories for Next.js; links are at the end.

Next.js security update In short
Latest security release 3 November 2026
Patched versions 16.4.5 (Active LTS) and 15.5.29 (Maintenance LTS)
Issues fixed Seven; Next.js lists one as high severity and six as medium
Previous release 14 October 2026: two critical, one high (16.4.1, 15.5.28)
Supported versions 16.x (Active LTS), 15.x (security releases until 31 January 2027)
Unsupported 14.x and older

What is Next.js, and why do its updates matter to business owners?

Next.js is an open-source framework for building websites and web apps with React. Company websites, online stores, dashboards and customer portals are built on it. When a security flaw is found in Next.js, every site built on an affected version shares that flaw until someone updates it. Hosting does not update your app’s code for you: your developer or agency has to change the version, test and redeploy.

If you are not sure whether your site uses Next.js, ask your developer, or look in your project’s package.json file for a line that starts with "next".

What did the November 2026 Next.js security release fix?

The Next.js team announced the release on 27 October, giving teams a week to plan, and published it on 3 November. Most of the seven fixes concern caching, where a page or data saved for one visitor could be shown to another in certain setups:

Issue Severity Who is affected
Cached content shown across tenants when unstable_cache and use cache are combined High (Next.js blog) Apps with Cache Components where cached functions read a root parameter such as a tenant ID
Cached content shown across root-parameter values in nested use cache functions Medium Apps using Cache Components with nested cached functions
Cross-user cache disclosure through binary use cache arguments Medium Apps passing binary values that identify users into cached functions
Shared page shell cache poisoning Medium Self-hosted apps on next start with a specific route shape
Responses sent to the wrong client Medium Self-hosted apps behind a particular kind of HTTP/1.1 reverse proxy
HttpOnly cookie values exposed in an internal header Medium Edge routes that set cookies with NextResponse.cookies.set()
SVG blocking bypass in image optimisation Medium Apps whose image backend can decode SVG

The advance notice described all seven as medium, and GitHub lists all seven advisories as medium; the release post rates the cross-tenant cache issue as high. Several issues need a specific setup to be exploited, and the release post says so for each. That does not make the update optional: you would need to check every condition in your own app to rule them out, and upgrading takes less time.

Next.js security releases in 2026 by version: October 14 release in 16.4.1 and 15.5.28 fixed two critical remote code execution flaws and one high severity denial of service; November 3 release in 16.4.5 and 15.5.29 fixed seven issues, mostly in caching; current stable version on npm is 16.4.6
The two most recent Next.js security releases, from the Next.js blog and npm.

What was in the October 2026 release?

The 14 October update, in 16.4.1 and 15.5.28, was more serious. It fixed:

  • An unauthenticated remote code execution flaw in use cache functions that return typed arrays, rated critical. The Next.js team wrote that there was no known workaround and advised upgrading immediately, even for apps without similar functions.
  • An unauthenticated remote code execution flaw in the Image Optimization API when SVG files are used, caused by an upstream library and affecting Next.js on glibc-based Linux. The workaround is to make sure the sharp package used by Next.js is version 0.35.5 or later.
  • A denial of service flaw in App Router apps with at least one Server Action, rated high, where crafted requests could use up the server’s CPU.

Remote code execution means an attacker could run their own code on your server. If your app was below 16.4.1 or 15.5.28 for any time after 14 October, ask your developer to check server logs for unusual activity as well as upgrading.

Which Next.js versions are still supported?

The Next.js support policy has two phases. A major version is in Active LTS until the next major version comes out, with new features, fixes and security patches. It then moves to Maintenance LTS, which gets only critical bug fixes and essential security updates, for two years from its first release.

Version Released Status on 29 November 2026
16.x 21 October 2025 Active LTS
15.x 21 October 2024 Maintenance LTS; security releases extended to 31 January 2027
14.x 26 October 2023 Unsupported
13.x and older 2022 and earlier Unsupported

The policy says the team may, in rare cases, patch versions outside the LTS window when a bug is severe enough. You should not plan around that. If your app is on Next.js 15, plan the move to 16 before the end of January 2027.

How do you check which Next.js version your app uses?

  1. Open package.json in the project and find the "next" line. This shows the version range allowed, not always the exact one installed.
  2. Run npm ls next in the project folder. npm’s documentation says this command prints the installed versions of packages in a tree, so you see the exact version in use.
  3. Run npm audit, which sends a description of your dependencies to the registry and asks for a report of known vulnerabilities.
  4. If the code is on GitHub, turn on Dependabot alerts, which warn you when a dependency in your repository has a known vulnerability.

If any of these shows a version below 16.4.5 or 15.5.29, the app needs the update.

How do you apply a Next.js security update safely?

For most apps the update itself is one command, such as npm install next@16.4.6. The care goes into testing and release:

  1. Update on a separate branch, not directly on the live server.
  2. Update related packages the release notes mention; for the October image flaw, that meant checking the sharp version.
  3. Build the app and run your tests. Then click through the pages that matter most: login, checkout, forms, dashboards.
  4. Deploy to a staging copy and check it there.
  5. Release to live at a quiet time, with the previous version ready to roll back.
  6. Watch error logs for a day after the release.
Patch routine for a Next.js app: check the installed version with npm ls next, update on a separate branch, build and test key pages, deploy to staging, release to live with rollback ready, and watch error logs; repeat for every security release
A patch routine that works for Next.js and for any other web framework.

How can you stay on top of future security releases?

Next.js published security releases in July, August, September, October and November 2026, according to its GitHub advisories. Rather than react to each one, set up a routine:

  • Follow the Security section of the Next.js blog, where advance notices and releases are posted.
  • Keep Dependabot alerts or a similar tool switched on for every project.
  • Agree with your developer or agency who applies security updates, and how quickly: for example, critical fixes within days and others within a set number of weeks.
  • Stay on a supported major version, so fixes are available when you need them.
  • Keep a staging copy of the site, so testing an update does not hold up the release.

The same routine works for WordPress, Laravel, React Native and any other software your business runs on.

When can you wait?

If your site is a static export with no server, no image optimisation and no caching features, many of these flaws may not apply. Even then, staying on a supported version keeps future updates small. If your app is on Next.js 13 or 14, an urgent patch is not possible within the support policy, so the honest next step is a planned upgrade to 16.

Getting help

Our custom web development team builds and maintains web apps, including Next.js projects, and our software development page covers support plans for business software. For other ways sites get attacked, see our guides to Content Security Policy and vibe coding security risks, and the older post on web security.

Frequently asked questions

What is the latest Next.js security update?

The November 2026 security release, published on 3 November 2026 in versions 16.4.5 and 15.5.29. It fixed seven vulnerabilities, most of them in caching. The current stable version on npm is 16.4.6.

Which Next.js version should I use?

Use the latest 16.x release, which is the Active LTS version. Next.js 15 still gets security releases until 31 January 2027. Next.js 14 and older are unsupported.

How do I check my Next.js version?

Run npm ls next in your project folder to see the installed version, or look at the "next" line in package.json. npm audit reports known vulnerabilities in your dependencies.

Is Next.js 14 still supported?

No. The Next.js support policy lists 14.x and older as unsupported, so they do not get regular security fixes. Apps on those versions should plan an upgrade to Next.js 16.

Do I need to update Next.js if my site is hosted on a managed platform?

Yes, unless your host has told you otherwise for a specific issue. The fixes are in the Next.js package your app installs, so the app has to be updated, rebuilt and redeployed.

Sources

OG
Written by OGEN Editorial Team

Designers, developers and marketers at OGEN Infosystem, Noida — building websites, apps and campaigns since 2013.

Keep reading

Call OGEN Infosystem