| Version | Security updates until | Time left | Status |
|---|---|---|---|
| Next.js 16LTSlatest 16.4.6released Oct 22, 2025Support ending soon | Oct 22, 2027332 days left | 332 days left | Support ending soon |
| Next.js 15LTSlatest 15.5.29released Oct 21, 2024Support ending soonExtended until January 31, 2027 | Jan 31, 202768 days left | 68 days left | Support ending soonExtended until January 31, 2027 |
| Next.js 14LTSlatest 14.2.35released Oct 26, 2023No longer supportedExceptional update 14.2.35 on December 11, 2025, because of React2Shell | Oct 26, 2025expired | expired | No longer supportedExceptional update 14.2.35 on December 11, 2025, because of React2Shell |
| Next.js 13latest 13.5.11released Oct 25, 2022No longer supported | Dec 21, 2024expired | expired | No longer supported |
| Next.js 12latest 12.3.7released Oct 26, 2021No longer supported | Nov 21, 2022expired | expired | No longer supported |
The most important vulnerabilities at a glance
The table of the most important vulnerabilities in Next.js and React since 2025 summarizes what React and Next.js themselves have published (sources at the end of the article). What counts are the versions actually installed in your app.
| Date | Vulnerability | Affected | Fixed in |
|---|---|---|---|
| March 21, 2025 | CVE-2025-29927, middleware bypass | Self-hosted Next.js apps (next start or standalone) that run checks in the middleware, such as authentication. Not Vercel, Netlify or Cloudflare Workers |
Next.js 15.2.3, 14.2.25, 13.5.9, 12.3.5 |
| December 3, 2025 | CVE-2025-55182 “React2Shell,” code execution without login, CVSS 10 | Apps with React Server Components on React 19.0 to 19.2.0, including Next.js with the App Router, React Router and Waku | React 19.0.1, 19.1.2, 19.2.1 and matching Next.js versions; for Next.js 13.3 to 14.x, exceptionally 14.2.35 |
| December 11, 2025 | CVE-2025-55184 and CVE-2025-67779 (denial of service), CVE-2025-55183 (source code of Server Actions exposed) | Apps with React Server Components, same as React2Shell | latest patch versions of React and Next.js |
| January 26, 2026 | CVE-2026-23864, denial of service | Apps with React Server Components, same as React2Shell | latest patch versions of React and Next.js |
| September 22, 2026 | Code execution through images from next/og |
Next.js 16.2.0 to 16.3.5, when outside input flows into generated images | Next.js 16.3.6 |
| October 14, 2026 | Code execution without login through image optimization with SVG files | Next.js 10 to 15.5.27 and 16 to 16.4.0 on Linux servers with glibc | Next.js 15.5.28 and 16.4.1. For Next.js 14 and older, the advisory names no fix, only a newer sharp package from 0.35.5 |
| October 14, 2026 | CVE-2026-126187, code execution without login in React Server Components, CVSS 9.5 | The React packages for Server Components (react-server-dom-webpack, -turbopack, -parcel) 19.0.0 to 19.3.0. In Next.js only 16.0 to 16.4.0 with the App Router and Cache Components, when a use cache function returns several binary data fields (typed arrays) |
React packages 19.0.9, 19.1.10, 19.2.9 and 19.3.1, Next.js 16.4.1 |
| November 3, 2026 | Seven Next.js advisories, one of them “High”: cached data of one tenant could end up with another | Mainly apps with Cache Components, some advisories only self-hosted apps or Edge routes | Next.js 16.4.5 and 15.5.29 |
React2Shell: what happened in December 2025
With React Server Components, part of React runs on the server. For this, the browser sends requests that React decodes on the server. That step is exactly where React2Shell, the vulnerability of December 2025, sat: a crafted request was enough to run arbitrary code on the server, without login. That is the most severe category there is, hence the CVSS 10 rating.
React that only runs in the browser was not affected by React2Shell. Affected, on the other hand, was every app whose framework supports Server Components, even if the app itself doesn’t define any Server Functions. For Next.js, this means: the App Router uses Server Components, the older Pages Router doesn’t. In the days that followed, more vulnerabilities in the same packages came out, including one that exposed the source code of Server Actions. So if your app got only a single update after December 3, 2025, it isn’t necessarily up to date.
If your app with Server Components ran unpatched on the internet for weeks after React2Shell, treat the keys on the server as possibly known and replace them.
The middleware bypass of March 2025
The middleware bypass of March 2025 (CVE-2025-29927) exploited an internal Next.js header: Next.js uses it to prevent the middleware from calling itself. An attacker could send that header too, and the middleware was skipped. For apps that check authentication in the middleware, this meant protected pages could be reached without login. Only self-hosted apps were affected; on Vercel, Netlify and Cloudflare Workers, the vulnerability didn’t apply.
The lesson from the middleware bypass still holds today: the Next.js middleware, called “Proxy” since Next.js 16, is a first barrier. The actual check of whether someone may see or change data also belongs where the data is loaded.
2026: over 50 security advisories for Next.js
In 2026, Next.js published over 50 security advisories on GitHub, several of them critical. Two examples: in September, a vulnerability in image generation with next/og, and in October, one in image optimization that allowed code execution without login. The second one affected Next.js versions all the way back to version 10. On November 3, seven advisories followed at once. And warnings sometimes arrive late: GitHub has only been flagging the critical React vulnerability from October 14 to affected projects since November 10.
With over 50 security advisories in 2026 alone, a Next.js app needs updates every few weeks. Fixes are only available for supported versions: as of November 2026, Next.js 16 and, until the end of January 2027, Next.js 15.
The npm supply chain: attacks on packages instead of your app
Attacks on the npm supply chain don’t target React or Next.js themselves, but the packages your app installs along with them:
- September 8, 2025: Through a phishing email to the maintainer, chalk, debug and about 18 other very widely used npm packages were taken over. The malicious code ended up in the frontend and swapped cryptocurrency addresses in the browser.
- September 2025: The “Shai-Hulud” worm stole access keys and published itself in more than 500 other npm packages. The US agency CISA issued a warning. A second wave followed in November 2025.
- December 9, 2025: npm revoked all classic access tokens. Build pipelines that used them to publish packages stopped working that day.
- May 11, 2026: 84 malicious versions in 42 TanStack packages, installable for a few hours. The malicious code ran during installation and collected keys for cloud, GitHub and npm.
- August 4, 2026: “ChainDrop” affected more than 400 npm packages and, like Shai-Hulud, spread itself further.
With attacks on npm packages, the most dangerous moment is installation, on developer laptops and in build pipelines, where keys for servers, the database and deployment are stored. Protection comes from a lock file in the repository, builds with npm ci that install exactly those versions, and keys that are only stored where they are needed. After ChainDrop, Microsoft also recommends installing freshly published package versions only after a waiting period.
How to check whether your app is affected
- Look at the installed versions. What counts is the lock file (
package-lock.json,pnpm-lock.yamloryarn.lock), notpackage.json, which often only lists ranges like^15.0.0. In the project folder,npm ls next react react-domshows what is actually installed. - App Router or Pages Router? If the Next.js project has an
appfolder (orsrc/app) withpage.tsxfiles, your app uses the App Router and therefore Server Components. - Where does the app run? On Vercel, Netlify, Cloudflare Workers or self-hosted with
next start, in Docker or on your own server. Which vulnerabilities apply depends on that. - What is live? The state in the repository and the state in production often differ. Check the last successful deployment, not just the code.
- Run npm audit. It provides a first list of known vulnerabilities. Whether a finding really affects your app depends on whether your app uses the affected part.
- Check the time windows. Was anything installed or built on one of the days when malicious npm packages were circulating? Then it’s worth looking at the history of the lock file. If there’s a match, all keys from development and the pipeline should be replaced.
If you find signs that someone has already exploited a vulnerability in your Next.js or React app, the article Website or application hacked: the first steps helps. If your business has come to a standstill because of it, help from Unique-P starts with the emergency fix.
Next.js 15 ends on January 31, 2027
Each Next.js major version stays active until the next one is released and then gets maintenance with security fixes, normally for two years from its release. For Next.js 15, that would have been October 21, 2026; Vercel extended the deadline to January 31, 2027. Next.js 14 and older only get an update in rare cases, as with React2Shell in December 2025.
The step to Next.js 16 brings some required changes:
- Node.js 20.9 or newer and TypeScript 5.1 or newer. The Node.js deadlines are in the article Node.js End of Life.
- params, searchParams, cookies() and headers() can only be used asynchronously.
- middleware.ts is now called proxy.ts. The old file still works for now but is deprecated.
- Turbopack is the new default build tool; custom Webpack configurations need a look.
A Next.js codemod takes care of part of the required changes for the upgrade to Next.js 16. Moving from the Pages Router to the App Router isn’t required for the upgrade and can be done page by page later. If your app doesn’t run on Vercel, there has been a stable interface for other platforms since Next.js 16.2, and running with next start on your own server is officially documented.
What if nobody knows your app anymore?
A Next.js app needs someone who reads security advisories, assesses them and installs the updates promptly. If the developer is gone, the Takeover Assessment from Unique-P with its JavaScript and TypeScript module shows which versions are running, which vulnerabilities are open and where keys are stored. After that, maintenance and support keeps Next.js, React and packages up to date. If your app was built with v0, Lovable or another AI tool, also read the warning signs before your first real customer. What else is typical for JavaScript applications is covered on the JavaScript and TypeScript page.
Sources
- [1]Postmortem on Next.js Middleware bypass · Vercel
- [2]Critical Security Vulnerability in React Server Components · React, December 3, 2025
- [3]Next.js Security Advisories · GitHub
- [4]Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used (GHSA-2464-fhr4-w9xw) · Next.js, October 14, 2026
- [5]Unauthenticated Remote Code Execution in React Server Components (CVE-2026-126187) · React, October 14, 2026, in the GitHub Advisory Database since November 10, 2026
- [6]Unauthenticated Remote Code Execution in use cache functions returning typed arrays (GHSA-673q-mjm6-r5xr) · Next.js, October 14, 2026
- [7]November 2026 Security Release · Next.js, November 3, 2026
- [8]Remote Code Execution in next/og ImageResponse (GHSA-vcvr-r3jv-pc5j) · Next.js, September 22, 2026
- [9]Next.js Support Policy · Vercel
- [10]Next.js 16 · Vercel, October 21, 2025
- [11]Next.js Across Platforms: Adapters, OpenNext, and Our Commitments · Vercel, March 25, 2026
- [12]Migrating to the App Router · Next.js
- [13]React Versioning Policy · React
- [14]20 Popular npm Packages Compromised (chalk, debug, strip-ansi …) · StepSecurity, September 8, 2025
- [15]Widespread Supply Chain Compromise Impacting npm Ecosystem · CISA, September 23, 2025
- [16]npm classic tokens revoked · GitHub, December 9, 2025
- [17]npm Supply-Chain Compromise Postmortem · TanStack
- [18]ChainDrop: Anatomy of a self-propagating worm · Microsoft Security, August 4, 2026