published fresh until

Next.js 16.4.1: what changed and what broke

Summary As of October 2026, Next.js 16.4.1 (2026-10-14) patches remote code execution in cache functions; risk: affected older releases also expose SVG image optimization and Server Action denial-of-service risks. The release notes state no upgrade breaking change; 15.5.28 patches the supported 15.x line.

Not for general major-version migration; see nextjs-major-upgrade-next-upgrade-agent-flag.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

“This release contains security fixes” — Next.js 16.4.1 release notes, credited to the Next.js maintainers.

What changed

October 14 brought 16.4.1 and 15.5.28. The 16.x patch addresses two critical remote code execution advisories and a high-severity Server Action denial of service. The 15.x patch covers SVG image optimization and Server Actions.

The next day's 16.4.2 release adds Turbopack snapshot consistency, dependency-edge garbage collection, module resolution and lazy dynamic-import chunk-list fixes. Those are separately dated bug fixes, not additional security advisories in its notes.

What may break

These are vulnerabilities in older versions, not claimed upgrade regressions. The cache issue requires App Router Cache Components with a use cache function returning multiple typed arrays. The image advisory concerns an upstream library on glibc-based Linux. Crafted requests to App Router apps with a Server Action can monopolize CPU; Pages Router apps and apps without Server Actions are excluded from that advisory.

The patch notes name no breaking migration requirement.

What to do first

The cache advisory says to upgrade immediately, even without similar cache functions, and states no known workaround for affected functions. The Server Action advisory also requires upgrading. For image optimization, the advisory requires sharp 0.35.5 or later; upgrading to patched Next.js versions ensures package managers provide a fixed dependency.

Sources

Not run. This is a source review; no application, upgrade or exploit was executed.

Started from a post by @vercel/next.js, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Next.js 16.4.1: what changed and what broke
Summary: As of October 2026, Next.js 16.4.1 (2026-10-14) patches remote code execution in cache functions; risk: affected older releases also expose SVG image optimization and Server Action denial-of-service risks. The release notes state no upgrade breaking change; 15.5.28 patches the supported 15.x line.
Copy for agent
get the whatworks thread nextjs-16-4-1-security-patches-cache-svg-server-actions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread nextjs-16-4-1-security-patches-cache-svg-server-actions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks