Packages
Next.js 16.5.0-rc.0 & 16.4.6: Turbopack Default Minify, 7 Cache Security Fixes & Upgrade Guide
Next.js shipped 16.5.0-rc.0 on November 28, 2026, flipping turbopackMinifyBeforeChunking on by default and adding CI upgrade handoffs, while production teams remain urged to patch seven cache and header advisories in 16.4.6 and 15.5.29. Here is the verified npm telemetry, breaking-change diff, and safe upgrade checklist.
8 min read
Next.js 16.5.0-rc.0 & 16.4.6: Turbopack Default Minify, 7 Cache Security Fixes & Upgrade Guide
Executive Summary
- Package & Ecosystem:
next(JavaScript / TypeScript React Framework on npm), verified as of December 1, 2026. - Exact Active & Pre-Release Versions:
- Active LTS (Production):
16.4.6(released November 9, 2026, building on the November 3 security release16.4.5). - Maintenance LTS (Production):
15.5.29(released November 3, 2026; receives security updates through January 31, 2027). - Latest Release Candidate:
16.5.0-rc.0(published November 28, 2026; covered November 29, 2026).
- Active LTS (Production):
- Primary Upgrade Takeaway: Production applications on 15.x or 16.x should immediately pin
16.4.6or15.5.29to close seven November 2026 security advisories (CVE-2026-119346throughCVE-2026-119351andCVE-2026-119790) plus October's upstream React Server Components (CVE-2026-126187) and image optimization (CVE-2026-96889) RCE flaws. Meanwhile, teams testing16.5.0-rc.0must validate bundle output becauseexperimental.turbopackMinifyBeforeChunkingis now enabled by default on stable builds, scaling default chunk size thresholds down to 40%.
Adoption Telemetry & Version Changelog
As one of the most widely depended-on packages in the JavaScript ecosystem, next on npm records 83,525,106 weekly downloads (verified from the npm package sidebar in November 2026), while its companion lint package @next/eslint-plugin-next spans 168,048 dependent repositories across Ecosyste.ms.
Because Next.js bundles its own internal copy of the React Server Components (react-server-dom-*) runtime inside the next package, upgrading react and react-dom alone does not patch framework-level advisories—the next package version and lockfile (package-lock.json, pnpm-lock.yaml, or yarn.lock) determine what ships to production.
Recent Release Timeline (October – November 2026)
| Version | Release Date | Track / Status | Key Changes & Milestones |
|---|---|---|---|
16.4.0 |
October 6, 2026 | Minor Release | Trims Turbopack disk cache by 20–25% (Zstandard + LZ4), ships React 19.3, and makes Cache Components default for new apps |
16.4.1 / 15.5.28 |
October 14, 2026 | Security Release | Fixes GHSA-673q-mjm6-r5xr (Cache Components RSC RCE side of CVE-2026-126187) and CVE-2026-96889 (librsvg/sharp image RCE) |
16.4.5 / 15.5.29 |
November 3, 2026 | Security Release | Patches 7 medium-severity advisories across use cache, Edge HttpOnly cookies, SVG bypass, and self-hosted HTTP/1.1 framing |
16.4.6 |
November 9, 2026 | Active LTS (latest) |
Bug-fix backports on top of 16.4.5 with all November 3 security patches included |
16.5.0-rc.0 |
November 28, 2026 | Release Candidate | Enables turbopackMinifyBeforeChunking by default on stable builds and adds next upgrade --ci (NewReleases.io) |
Runtime & Infrastructure Note: Teams running self-hosted builds on Node.js 24.13.1+ should note that Next.js 16.4's experimental worker-thread mode for Turbopack's plugin runtime automatically falls back to child processes due to an upstream Node.js bug, as documented in October 2026 coverage.
Security Patches, Breaking Changes & Internals
1. Seven Advisories Patched in 16.4.5 / 16.4.6 and 15.5.29
Next.js's November 3, 2026 security release—detailed in Netlify's security changelog and Voroa's self-hosted analysis—resolved seven distinct vulnerabilities (note that while an advance notice mentioned "seven medium" and some blogs referred to the cross-tenant cache issue as high impact, GitHub Advisories rate all seven as Medium):
| GHSA / CVE ID | Affected Scope | Technical Root Cause |
|---|---|---|
GHSA-vc7v-qv4w-wrv8 (CVE-2026-119351) |
16.2+ (Cache Components) |
Nested 'use cache' functions leak across root parameter values (e.g., tenant ID or locale) via delayed inner stream metadata |
GHSA-mfr8-8qww-v76h (CVE-2026-119790) |
16.3+ (Cache Components) |
Calling the same 'use cache' function both directly and inside unstable_cache() during a cold fill can serve one tenant's data to another |
GHSA-rhh4-g77r-r9qj (CVE-2026-119349) |
16.x (Cache Components) |
Passing binary arguments (such as Blob) to a shared 'use cache' function causes cache key collisions and cross-user disclosure |
GHSA-vvgp-ww4w-46vf (CVE-2026-119350) |
16.4+ (Cache Components) |
Request-supplied placeholder route params can poison shared fallback shells, causing valid pages to return cached 404 responses |
GHSA-f3mh-rxg3-f5g2 (CVE-2026-119346) |
15.x & 16.x Edge Routes |
HttpOnly cookies set in Edge Route Handlers or Edge API routes can be exposed via an internal response header if an attacker already has XSS |
GHSA-7qx7-33qx-rqx2 (CVE-2026-119347) |
15.x & 16.x Image Optimizer |
SVG rejection bypass when images.dangerouslyAllowSVG: false is configured on the built-in image optimizer |
GHSA-pc58-hwjq-p385 (CVE-2026-119348) |
Self-hosted next start |
App Router routes returning fetched responses unchanged behind HTTP/1.1 pipelining reverse proxies can trigger response injection/framing mismatches |
On Netlify, GHSA-7qx7-33qx-rqx2, GHSA-mfr8-8qww-v76h, and GHSA-pc58-hwjq-p385 do not apply due to Netlify's Image CDN and isolated serverless framing, but Middleware HttpOnly cookie exposure still requires upgrading @netlify/plugin-nextjs to v5.16.6 alongside next@16.4.5+ or 15.5.29. On self-hosted VPS, Docker, or Kubernetes deployments running next start, all applicable advisories require bumping the next dependency directly.
2. Why Older 15.x and 16.x Builds Must Not Linger: October RCE Context
Stopping at older 15.x or 16.0–16.3 patch levels leaves applications exposed to even higher-severity upstream flaws. On October 14, 2026, Next.js 16.4.1 and 15.5.28 patched GHSA-673q-mjm6-r5xr (the Next.js Cache Components surface of React Server Components RCE CVE-2026-126187, CVSS 4.0 9.5) alongside CVE-2026-96889, a memory-corruption flaw in librsvg used by sharp (0.35.5 fixed) when decoding SVG images on glibc-based Linux hosts.
Furthermore, any App Router deployment still running 15.0.0 through 16.0.6 remains vulnerable to CVE-2025-55182 ("React2Shell", CVSS 10.0)—an unauthenticated remote code execution flaw in React Server Function payload deserialization that continues to be targeted by automated credential-harvesting campaigns in late 2026. Upgrading directly to 16.4.6 (or 15.5.29) closes all three waves in one step.
3. Breaking Default in 16.5.0-rc.0: turbopackMinifyBeforeChunking
In Next.js 16.5.0-rc.0 (PR #102377 / #102520, merged November 27–28, 2026), SemanticDiff shows assignDefaultsAndValidate in packages/next/src/server/config.ts changing result.experimental.turbopackMinifyBeforeChunking from ??= !isStableBuild() to ??= true.
Previously, Turbopack split chunks based on raw unminified module sizes, which could over-split modules containing heavy comments or verbose local identifiers. When minification is active in 16.5.0-rc.0, Turbopack now minifies each module before computing chunk boundaries and measures sizes in minified bytes. To preserve balanced HTTP/2 request waterfalls, Next.js scales its default chunking thresholds and requestCost down to 40% of their unminified values:
- Default
maxChunkSizedrops from1,000,000bytes to400,000bytes. - Default
maxServerChunkSizedrops from10,000,000bytes to4,000,000bytes.
In addition, 16.5.0-rc.0 introduces next upgrade --ci, which automates CI-based framework upgrades and writes handoff files for continuous integration runs (Kodyfier).
If your build pipeline or custom webpack/Turbopack chunk-budget assertions break under 16.5.0-rc.0, you can explicitly opt out in next.config.ts:
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
experimental: {
// Opt out of pre-chunking minification if testing 16.5.0-rc.0 chunk diffs
turbopackMinifyBeforeChunking: false,
},
};
export default nextConfig;
Ecosystem Comparison & Upgrade Checklist
Choose the right target version based on your deployment stability requirements:
| Release Line | Version | Security Patch Level | Turbopack Minify-Before-Chunking | Recommended For |
|---|---|---|---|---|
| Maintenance LTS (15.x) | 15.5.29 |
All Nov 3 fixes (15.x scope) |
Off | Production apps not ready for 16.x migration (supported until Jan 31, 2027) |
| Active LTS (16.x) | 16.4.6 |
All Nov 3 + Oct 14 fixes + backports | Off on stable (canary only) | All production 16.x apps requiring verified stability |
| Release Candidate | 16.5.0-rc.0 |
Includes 16.4.x security baseline | On by default (40% thresholds) | Staging/CI branches validating 16.5 chunk sizes & next upgrade --ci |
Safe Upgrade & Pinning Steps
- Inspect your resolved lockfile version (do not rely on
^16.4.0inpackage.json):npm ls next - Upgrade to the patched LTS release for your major branch:
# Active LTS (16.x) npm install next@16.4.6 # Maintenance LTS (15.x) npm install next@15.5.29 - Audit multi-tenant
'use cache'functions: Verify that every'use cache'function accepts tenant, user, or locale identifiers explicitly in its arguments rather than relying on implicit headers orunstable_cache()wrappers. - Rebuild, commit the lockfile, and purge stale deploy previews: Run
npm run build && npm startlocally, commitpackage-lock.json/pnpm-lock.yaml, and delete any public preview deployments built on unpatched releases so stale cached shells cannot persist. - Automate advisory gating in CI: With Next.js shipping three security releases across October 14, October 27 (advance notice), and November 3, 2026, teams should pair lockfile commits with automated CI dependency checks (
npm audit --audit-level=moderateor Dependabot/Renovate) and test16.5.0-rc.0on a dedicated staging branch—comparing.next/static/chunksoutput before16.5reaches stable—rather than discovering chunk-budget or advisory failures during a production deploy.
Frequently Asked Questions
Should I upgrade production apps to Next.js 16.5.0-rc.0 or 16.4.6?
Use 16.4.6 (or 15.5.29 on the 15.x branch) for production workloads. 16.5.0-rc.0 is a release candidate intended for testing default turbopackMinifyBeforeChunking chunk-size changes and next upgrade --ci on staging branches.
Does upgrading React (react / react-dom) fix Next.js's November 2026 vulnerabilities?
No. Next.js bundles its own internal copy of the React server packages (react-server-dom-*) and Cache Components runtime inside the next package. You must upgrade next itself and commit the updated lockfile.
What does turbopackMinifyBeforeChunking change in Next.js 16.5.0-rc.0?
Starting in 16.5.0-rc.0, Turbopack minifies each module before splitting chunks in stable production builds as well as canary builds, scaling default maxChunkSize (400000) and maxServerChunkSize (4000000) to 40% of their unminified thresholds.
Are self-hosted Next.js apps affected by the November 2026 security advisories?
Yes. In particular, GHSA-pc58-hwjq-p385 (CVE-2026-119348) and GHSA-vvgp-ww4w-46vf (CVE-2026-119350) affect self-hosted next start deployments behind reverse proxies or using Cache Components. Upgrading next to 16.4.5+ (16.4.6 recommended) or 15.5.29 resolves them.
How long will Next.js 15.5.x receive security updates?
Per Next.js's support policy referenced in November 2026 tracking, the 15.5.x Maintenance LTS line receives security releases through January 31, 2027.
Sources
- npm Registry —
nextPackage (83,525,106 weekly downloads; versions16.4.6,15.5.29,16.5.0-rc.0): https://www.npmjs.com/package/next?activeTab=dependents - NewReleases.io —
next@16.5.0-rc.0Release Notes (November 28, 2026): https://newreleases.io/project/npm/next/release/16.5.0-rc.0 - SemanticDiff —
vercel/next.jsPR #102377 (Enable turbopackMinifyBeforeChunking by default) (November 27–28, 2026): https://app.semanticdiff.com/gh/vercel/next.js/pull/102377/overview - Netlify Changelog — "Security Update: Multiple vulnerabilities in Next.js (November 2026)" (November 3, 2026): https://www.netlify.com/changelog/2026-11-03-nextjs-security-vulnerabilities/
- Kodyfier — "Programming, AI & Tech News Today (29 Nov 2026): Next.js 16.5.0-rc.0" (November 29, 2026): https://kodyfier.com/blog/daily-programming-news-2026-11-29.php
- Voroa Blog — "Next.js Security Release, November 2026: Upgrade to 16.4.5" (November 29, 2026): https://getvoroa.com/blog/nextjs-security-release-november-2026/