Skip to main content

Pantheon release notes

Your destination for staying informed about our latest innovations and product updates.
Subscribe to RSS feed

Next.js
October 14, 2026

The latest security update for Next.js addresses three vulnerabilities in upstream dependencies: two critical vulnerabilities and one high-severity vulnerability.

Action required

Because this is a security update, we recommend that customers update affected Next.js applications as soon as possible. Customers are responsible for updating their application dependencies and redeploying; Pantheon does not update Next.js sites on customers' behalf.

The published Next.js advisory lists 16.4.1 and 15.5.28 as patched versions.

If your application directly manages React Server Components packages, update them to the patched versions listed in the React advisories: 19.0.9, 19.1.10, 19.2.9, or 19.3.1, as applicable.

Highlights

This update addresses three upstream security vulnerabilities:

  • Critical — Remote code execution in image processing: A vulnerability in the upstream image-processing stack can lead to remote code execution when Next.js processes SVG files on glibc-based Linux systems. The advisory identifies Next.js 15.5.28 and 16.4.1 as patched versions. As a workaround, use Sharp 0.35.5 or later. See GHSA-2464-fhr4-w9xw.
  • Critical — React Flight remote code execution: Crafted React Server Component payloads can lead to remote code execution in rare cases involving multiple typed arrays and attacker-controlled values. See GHSA-xqc2-xf4c-x3h3.
  • High — Denial of service through Server Functions: Crafted requests to Server Function endpoints can cause excessive CPU use or out-of-memory exceptions. Applications that do not use server-side React or a framework that supports React Server Components are not affected. See GHSA-h3gv-c5rc-p453.

For full technical details and affected package versions, review the linked security advisories.

June 26, 2026

The Security tab is now available for Next.js sites in the Site Dashboard. You can password protect any environment with basic authentication, the same way you can for Drupal and WordPress sites. When an environment is locked, visitors are prompted for a username and password before the site is served.

To lock an environment, select the environment, open the Security tab, choose Locked, provide a username and password, and save. To make it public again, choose Public. For step-by-step instructions, see Lock Environments with the Dashboard Security Tool.

Run a new build after changing lock status

On Next.js sites, locking or unlocking an environment does not take effect until a new build is deployed to that environment. After you change the lock or unlock status in the Security tab, trigger a new build using the Rebuild option (available in the Site Dashboard and through Terminus) or by pushing a new commit to the connected branch, so the change is applied to the running site.

For more details about Next.js on Pantheon, see our Next.js documentation.

June 22, 2026

Pantheon now supports Bun as a package manager for Next.js sites, alongside npm, yarn, and pnpm. We've also added support for Node.js 26 (LTS).

Bun support

To use Bun, add a bun.lock file to your repository. Pantheon automatically detects the lock file and uses Bun to install your dependencies during the build process.

You can specify a Bun version in the engines.bun or packageManager field of your package.json. If no version is specified, Pantheon defaults to the latest stable release.

Node.js 26 support

Node.js 26 is now available as an LTS runtime for Next.js sites. Set the engines.node field in your package.json to use it:

Node.js 20 removed

Node.js 20 has reached end of life and is no longer available as a runtime. Sites using Node.js 20 must upgrade to Node.js 22 or later.

For more details about Next.js on Pantheon, see our Next.js documentation.

May 27, 2026

Pantheon will shut down infrastructure running our Front-End Sites offering on October 1st, 2026.

Our intention to replace the Front-End Sites was included in the Beta announcement of newer support for Next.js. As our support for Next.js reached General Availability, Pantheon staff began direct outreach to customers using Front-End Sites.

Please reach out to your Customer Success Manager if you would like assistance moving your site. Or, if you prefer to migrate on your own, you can do so with these steps.

April 14, 2026

Support for creating Next.js sites is now generally available to Pantheon customers with Gold, Platinum or Diamond Workspaces. Previously, Next.js was restricted to a private beta program.

Create new site next.js from the Pantheon Workspace

Hosting for Next.js sites can be purchased at the same plan levels and pricing as WordPress and Drupal sites. Teams running a decoupled architecture in which Next.js reads content from a CMS on Pantheon must purchase two separate plans, though decoupling may allow WordPress or Drupal to run at a smaller plan level.

Since the beginning of our private beta program last November we have added many enhancements including:

For more perspective on this change to general availability, see the Pantheon blog. To learn how to run Next.js on Pantheon, read our documentation.

March 10, 2026

The Next.js site creation process now includes prompts for setting secrets at site creation time. This change benefits sites that need API tokens or other variables in order to build successfully. Previously, sites requiring these secrets would fail their automatic first build.

Setting secrets at site creation

Secrets set in this interface are stored securely using Pantheon's Secrets Manager.

The ability to set secrets at site creation time is valuable for anyone standing up our Content Publisher integration. See this updated tutorial that shows secret-setting at site creation.

March 3, 2026

Next.js 16 is now the default version for new site creation on Pantheon. When creating a new Next.js site, you will automatically get Next.js 16, the latest version of the leading React framework for building web applications.

What's New

Next.js 16 introduces Cache Components, moving the framework further in the direction of "dynamic by default" architecture. Pantheon's horizontally scalable container infrastructure with shared caches is well-suited to support this direction.

Creating New Sites

When you create a new Next.js site, it will default to Next.js 16. You can create sites via Terminus:

You can also create Next.js sites through the Pantheon Dashboard, which will automatically use Next.js 16.

Additional Information

For more details about Next.js on Pantheon, see our Next.js documentation.

February 26, 2026

The @pantheon-systems/nextjs-cache-handler package is now publicly available. It enables persistent caching on Pantheon's Next.js platform, so your cached data survives across deployments and server restarts.

Features

  • Works out of the box on Pantheon — The handler auto-detects your environment. No extra configuration needed beyond installing the handler in your Next.js application.
  • Full support for Next.js caching APIs — revalidateTag(), revalidatePath(), and ISR work as expected, including automatic CDN cache invalidation so your visitors see updates immediately.
  • Next.js 16 use cache support — Compatible with the new cacheHandlers API and 'use cache' directive introduced in Next.js 16.
  • Smart build deploys — When you deploy a new build, page caches refresh automatically while your data caches are preserved, avoiding unnecessary re-fetches from APIs and databases.
  • Local development friendly — Uses file-based caching in development so you can test caching behavior locally without any cloud dependencies.
  • Debug logging — Set CACHE_DEBUG=true to see detailed cache hit/miss/set activity for troubleshooting.

Getting started

Install the package:

Then configure your Next.js application to use the cache handler. For full setup instructions, usage examples, and configuration options, see the README on GitHub.