Next.js latest safe version: 16.4.5+ or 15.5.29+
As of November 6, 2026, the safe Next.js versions are 16.4.5 on 16.x and 15.5.29 on 15.x, released on November 3 with fixes for seven advisories. None of those is critical, but anything below 16.4.1 or 15.5.28 also misses the two critical unauthenticated RCEs fixed on October 14, and no 16.3.x or 14.x release is patched. Upgrade with npm install next@16.4.5 (or next@15.5.29 on 15.x), then confirm npm ls sharp shows 0.35.5 or later.
Last checked: 2026-11-06, against nextjs.org, the vercel/next.js security advisories and the npm registry. Next.js pre-announces security releases roughly once a month and ships urgent fixes out of band, so check this date before you trust the numbers below.
Which Next.js version is safe right now?
16.4.5 on Next.js 16, and 15.5.29 on Next.js 15. Both shipped in the November 2026 security release on November 3, and both are also the newest release on their line.
| Line | Status on nextjs.org | Oldest safe release | Newest release |
|---|---|---|---|
| 16.x | Active LTS | 16.4.5 | 16.4.5 |
| 15.x | Maintenance LTS, security releases until Jan. 31, 2027 | 15.5.29 | 15.5.29 |
| 14.x and older | Unsupported | none | no fix for these bugs |
How urgent the upgrade is depends on where you are:
- 16.4.1 to 16.4.4, or 15.5.28: you have the October critical fixes. The November issues are medium-rated (one High, per the release post) and mostly need specific features: Cache Components, Edge routes that set cookies, or self-hosting behind certain proxies. Upgrade this week.
- Anything older, including all of 16.3.x: you're exposed to the October RCEs as well. Upgrade today. Active LTS moved from 16.3 to 16.4 in October and npm has no patched 16.3.x.
npx next --version. Nothing you paste is stored.What did the November 3 release fix?
Seven advisories, patched in 16.4.5 and 15.5.29. The first three reach 15.x too; the other four are 16.x Cache Components bugs.
- GHSA-f3mh-rxg3-f5g2 (Medium): Edge Route Handlers and Pages Router Edge API routes that set cookies with
NextResponse.cookies.set()also echo the cookie in an internalx-middleware-set-cookieheader, which same-origin JavaScript can read even when the cookie isHttpOnly. It needs attacker JavaScript already running on your origin. Node.js routes andcookies().set()weren't affected in the reproduction. Relevant if your auth cookies are set from an Edge route. - GHSA-7qx7-33qx-rqx2 (Medium): an image from an allowed source can be misread as AVIF and slip past
dangerouslyAllowSVG: false, reaching the SVG decoder you meant to keep off. Same optimizer as the October SVG RCE and the "url" parameter is not allowed error. YourremotePatternsallowlist still applies, which is one more reason not to allow every remote host. - GHSA-pc58-hwjq-p385 (Medium): a self-hosted app that returns a fetched upstream
Responseunchanged can send framing headers that don't match the body. Behind an HTTP/1.1 proxy that queues pipelined requests on a shared connection, responses can land at the wrong client. - GHSA-mfr8-8qww-v76h (High in the release post): with Cache Components, the same
use cachefunction called directly and throughunstable_cache()can serve one tenant's cached data to another when it reads a root parameter such as a tenant ID. - GHSA-rhh4-g77r-r9qj (Medium): distinct binary arguments (
Uint8Array,Blob) to ause cachefunction can produce the same cache key, so one user can get another user's cached result. - GHSA-vc7v-qv4w-wrv8 (Medium): nested
use cachefunctions can reuse content across root-parameter values when the inner one returns pending promises. - GHSA-vvgp-ww4w-46vf (Medium): self-hosted
next startapps with Cache Components and without Partial Prefetching can have a shared fallback shell poisoned by one unauthenticated request.
The release post doesn't ask anyone to rotate secrets.
What did the October 14 release fix?
This is the floor that still matters most if you're below 16.4.1 or 15.5.28: two critical RCEs and one high-severity denial of service.
- CVE-2026-96889 / GHSA-2464-fhr4-w9xw (Critical, CVSS 9.5): unauthenticated RCE in the Image Optimization API when SVG files are used and Next.js runs on glibc-based Linux, caused by a memory bug in an upstream library. Affected: 10.0.0 through 15.5.27, and 16.x up to 16.4.0.
- GHSA-673q-mjm6-r5xr (Critical, CVSS 9.5): unauthenticated RCE in App Router apps using Cache Components, when a
use cachefunction returns multiple typed arrays. Affected: 16.0.0 through 16.4.0. There's no workaround. - GHSA-p3m5-59mp-jv5r (High, CVSS 8.2): a CPU-exhaustion denial of service against any App Router app with at least one Server Action. Affected: 13.0.0 through 15.5.27, and 16.0.0 through 16.4.0.
Don't skip the use cache fix because you don't use the feature. That advisory says: "You should upgrade immediately even if your application does not have similar functions."
How fast has the safe floor moved in 2026?
Six times in under four months. Next.js formalised a security release program in July 2026, and these are the releases since:
| Release | 16.x patched in | 15.x patched in | Worst severity |
|---|---|---|---|
| July 2026 | 16.2.11 | 15.5.21 | High |
| August 25 | 16.3.3 | 15.5.24 | Critical (2 RCEs) |
| September 22, out of band | 16.3.6 | 15.5.26 (hardening, 15.x not affected) | Critical (next/og RCE) |
| September 30 | 16.3.8 | 15.5.27 | High |
| October 14, out of band | 16.4.1 | 15.5.28 | Critical (2 RCEs) |
| November 3 | 16.4.5 | 15.5.29 | High (1), rest Medium |
Six security releases between July 21 and November 3, 2026, three of them fixing critical-severity remote code execution. Each patched 16.x release stayed the floor for between eight days and five weeks.
So "safe" means "at or above the floor set by the latest release", and that floor moves every few weeks. Any next at today's floor is also well past the fix for the December 2025 React2Shell RCE and its affected versions. An exact pin that was right in October is behind in November, which is how known-vulnerable dependencies slip past review.
What a scan of a September-patched project shows
This project pinned the freshly patched 16.3.8 on September 30:
{
"name": "my-saas",
"private": true,
"dependencies": {
"next": "16.3.8",
"react": "19.2.8",
"react-dom": "19.2.8",
"@supabase/ssr": "^0.12.7",
"@supabase/supabase-js": "^2.118.0"
}
}
- Criticalpackage.json:5
Dependency with a known advisory
Upgrade to the patched version and run npm audit to confirm the advisory is resolved.
That's general/vulnerable-dependency at critical severity, asking for >= 16.4.5. GuardLayer rates a next finding critical only when the version is inside a range a Critical advisory covers. 16.3.8 is inside both October RCEs, so it's critical. A project on 16.4.1 to 16.4.4 gets the same finding as a warning: it's below the November floor, but nothing critical reaches it. A critical finding fails the GuardLayer check under the default policy. It blocks merges only if you make that check a required status check in branch protection.
Two limits. The rule reads the version in package.json, not your lockfile, so a caret range like ^16.4.2 gets a note asking you to confirm what resolved. And it never sees a transitive sharp.
Upgraded to 15.5.29 and still exposed? Check sharp
The October SVG RCE lives in librsvg, which sharp bundles, not in Next.js code. sharp's own advisory, GHSA-wq5f-xc86-pv6w, lists every sharp release below 0.35.5 as affected. The Next.js advisory's workaround: make sure the sharp it uses is 0.35.5 or later.
On 16.x that happens on its own: next@16.4.5 declares its optional sharp dependency as ^0.35.5. next@15.5.29, like 15.5.28, declares ^0.34.3 || ^0.35.5, so a sharp 0.34.x already in your lockfile still satisfies it. We tested the upgrade path with 15.5.28 and npm 11.12.1 (not pnpm or yarn). A lockfile created on next 15.5.21 resolved sharp 0.34.5. After npm install next@15.5.28, it still held 0.34.5. One more command fixed it:
npm ls sharp # anything below 0.35.5 is in the affected range
npm update sharp # moved 0.34.5 -> 0.35.5 in our test
npm ls sharp
A fresh 15.x install picked 0.35.5 by itself; the upgrade path is the gap. GuardLayer flags a sharp below 0.35.5 only when it's a direct dependency in package.json. The transitive case is yours to check.
Is Next.js 15 still supported?
Yes, until January 31, 2027. The support policy says Maintenance LTS for 15.x "has been extended beyond its original end date of Oct. 21, 2026", and that Next.js will keep publishing security releases for 15 through Jan. 31, 2027. Maintenance LTS means critical bug fixes and security updates only.
Read that as: 15.x is safe to run for now if you stay on the newest 15.x patch, but it has a hard end date. Get to 15.5.29 today, then move to 16 before February 2027. Budget for the middleware.ts to proxy.ts rename while you're at it.
Next.js 14 is already on the unsupported list. The October SVG advisory's affected range starts at 10.0.0, and there's no 14.x fix.
A 60-second self-check
npm ls next # floor: 16.4.5 on 16.x, 15.5.29 on 15.x
npm ls sharp # floor: 0.35.5
npm view next dist-tags # on Nov 6: latest = 16.4.5, backport = 15.5.29
If next is below 16.4.1 or 15.5.28, upgrade within your line today. An unauthenticated RCE means code could have run in your server process, so if a vulnerable build was internet-facing, use the rotation order from the React2Shell post. If you're between the two floors, upgrade this week, and check first whether you use Cache Components or set auth cookies from Edge routes.
FAQ
What is the latest safe version of Next.js? 16.4.5 on 16.x and 15.5.29 on 15.x, both released November 3, 2026. They clear every Next.js security release to date.
Is Next.js 16.4.1 still safe? Not fully. It has the October critical fixes, but not the seven November fixes. Those are rated Medium (one High in the release post) and mostly need Cache Components, Edge routes that set cookies, or a self-hosted proxy setup. Upgrade to 16.4.5 this week.
Is Next.js 16.3.8 safe? No. It was the patched release on September 30, but both October RCEs affect it, and there is no 16.3.x fix. Move to 16.4.5.
Is Next.js 15 end of life? Not yet. Next.js extended 15.x's Maintenance LTS past its original October 21, 2026 end date and will publish security releases for it through January 31, 2027. After that, 15.x is unsupported like 14.x is today, so plan the move to 16 before then.
Is Next.js 14 safe to use? No. 14.x is unsupported, and no 14.x release is patched for the October SVG RCE. Upgrade to 15.5.29 at minimum, and to 16 if you can.
Do I need to upgrade if I don't use use cache or SVG images?
If you're below 16.4.1 or 15.5.28, yes: the October use cache advisory says to upgrade even without such functions, and its DoS hits any App Router app with a Server Action. The November fixes are narrower, but 16.4.5 is a patch release within the same line, so there's little reason to wait.
Catch this before it ships — free
Scan your files for this and 35 other Next.js + Supabase issues, with the exact fix inline. Connect GitHub and GuardLayer checks every push too — free on public repos.
No signup, no card. Raw files aren’t kept; only the report is saved.