Skip to content

Upgrades

Next.js 15 security releases end on 31 January 2027

What the date means for a business website, how to check which version you run, and a checklist for upgrading to Next.js 16.

Next.js is the framework your website is built with, if it is a Next.js site. Like any software it receives security fixes for a limited time, and for version 15 that time is nearly over.

What the support policy says

The Next.js support policy describes long-term support (LTS) like this:

  • 16.x is in Active LTS. It was released on 21 October 2025.
  • 15.x is in Maintenance LTS. Its security releases continue through 31 January 2027.
  • 14.x and older are unsupported.

What it means for your site

A site on version 15 will not stop working on 1 February 2027. What changes is the safety net: if a vulnerability is found after that date, you should not expect a fix for the 15.x line.

This is not a theoretical concern. On 3 December 2025, the Next.js team published CVE-2025-66478, rated 10.0 on the CVSS severity scale, the highest score. It could allow remote code execution, meaning an attacker running their own code on your server, in unpatched 15.x and 16.x applications using the App Router. It also affected 14.3.0-canary.77 and later canary (preview) releases. Upgrading was the only fix.

Find out which version you run

Ask your developer, or look at the repository. The next entry in package.json shows the allowed range, and the lock file shows the exact version installed. Check what is actually deployed, not only what is on someone's laptop.

If you are on version 14 or older, you are already outside support. Plan for the changes introduced in version 15 as well as those in 16.

Upgrade checklist

The steps below come from the official version 16 upgrade guide. Read it alongside this list.

1. Prepare

  • Start from a branch where the current site builds cleanly.
  • Write down the pages, forms, sign-in flows and payments you will test afterwards.
  • Check requirements: Node.js 20.9.0 or later and TypeScript 5.1.0 or later. Supported browsers are Chrome, Edge and Firefox 111 or later, and Safari 16.4 or later.

2. Run the codemods

A codemod is a script that rewrites code for you. Review what it changes.

npx @next/codemod@canary upgrade latest

It updates the Turbopack configuration, moves next lint to the ESLint command line, renames middleware to proxy, and removes some old prefixes and settings. It does not run every migration. If your code still reads request data synchronously, also run:

npx @next/codemod@canary next-async-request-api .

3. Fix request APIs

Synchronous access to cookies, headers, draftMode, params and searchParams has been removed. Each must now be awaited. The params and id values passed to generated share images and icons, and the id passed to generated sitemaps, are promises too. The npx next typegen command generates type helpers that make the change easier to check.

4. Check the build setup

Turbopack, the newer bundler, is now the default for next dev and next build. If your project has a custom webpack configuration, the build fails until you choose: migrate the settings, run with --turbopack to ignore them, or run with --webpack to keep the old bundler. Turbopack also does not accept the ~ prefix in Sass imports.

5. Rename middleware

The middleware file and function are deprecated in favour of proxy. The edge runtime is not supported in proxy. If you depend on it, the guide says to keep using middleware.

6. Review image behaviour

These defaults changed in next/image:

SettingWhat changed in 16What to check
minimumCacheTTL60 seconds became 4 hoursImages replaced at the same address
imageSizes16 pixels removedVery small icons
qualitiesNow only 75 by defaultComponents that set another quality
Local IP addressesOptimisation blocked by defaultPrivate network image sources
maximumRedirectsUnlimited became 3Image sources that redirect

Local images with query strings now need an images.localPatterns entry. next/legacy/image and images.domains are deprecated.

7. Review caching and removed features

  • revalidateTag now expects a second argument, a cache lifetime profile.
  • The experimental ppr, dynamicIO and useCache flags are gone. Their replacement, cacheComponents, is a change of model and not only a rename. If you use Partial Prerendering today, read that section of the guide before upgrading.
  • next lint has been removed, and next build no longer runs linting. Add it to your own pipeline.
  • AMP support, serverRuntimeConfig and publicRuntimeConfig have been removed, along with some devIndicators options and unstable_rootParams.
  • Every parallel route slot needs a default.js file.
  • If you set smooth scrolling in CSS and want instant scrolling between pages, add data-scroll-behavior="smooth" to the <html> element.

Test before you release

Deploy the upgrade to a preview address, separate from the live site. Work through your list from step 1, including forms that send email and any redirects. The build output no longer shows page size figures, so compare performance with Lighthouse or real visitor data. Keep a way to return to the previous deployment.

When to start

Start now, while there is room for surprises. A small site with few dependencies may be quick. Custom webpack settings, older libraries or heavy caching logic take longer, and you will not know which you have until someone looks.

If nobody currently looks after the code, begin with a website audit. If you want the upgrade done for you, see migration and upgrades.

All articles

Tell us about your website

Thirty minutes, no charge. We will say plainly whether we are the right fit.

We reply within 1 business day. Hours: Monday to Friday, 10:00–18:00 IST, except public holidays in Karnataka.