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
- 16.4.1 release, October 14
- 15.5.28 release, October 14
- 16.4.2 release, October 15
- Cache typed-array advisory
- SVG image advisory
- Server Action advisory
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