Topic · 4 items
Next.js
This page gathers what Preload has picked up on Next.js: releases, vulnerabilities to patch and the real cost of the framework in shipped JavaScript. It is for teams building or taking over a server-rendered React application, and I keep it current with whatever changes how they ship a fast, secure site.
Follow this topic By RSS, in your feed reader
The JavaScript cost of letting an AI agent pick the framework
Letting an AI agent choose a site's architecture can blow your JavaScript budget. Nolan Lawson had Claude Code build the same app, a content-heavy catalog with little interactivity, in 12 frameworks, five times each: median client JavaScript ranged from 0 KB with Astro to 142 KB with Next.js, and median LCP measured by Lighthouse from 810 ms to 2,090 ms. Agents often built a single-page app (SPA) even when nothing called for one: the agent building the no-framework version did so five times out of five.
Next step
Spell out the expected architecture (server rendering, separate pages) and a JavaScript budget in your agent's instructions, then measure the result in Lighthouse or the Network tab. On a Next.js 16.4 project, the next-bundle-optimizer skill, released the same day by the Next.js team, helps an agent find JavaScript that loads for nothing.
The SPA bias is real, while a content site only needs a few kilobytes of JavaScript. As the author himself points out, with a single model tested, this benchmark is one data point, not a verdict.
Next.js ships seven security fixes this Tuesday
Next.js apps have a security update to apply today: on October 27, the Next.js team announced a security release scheduled for Tuesday, November 3, fixing seven medium-severity vulnerabilities. The full advisories, with affected versions and upgrade instructions, are published alongside the release.
Next step
Block out time today: read the advisories as soon as they're out to see which versions are affected, upgrade your Next.js apps, then redeploy them.
Next.js 16.4.1 and 15.5.28 fix two remote code execution flaws
The update announced for October 14 is out. It fixes an unauthenticated remote code execution when a use cache function returns several typed arrays (App Router with Cache Components), with no workaround, and another in SVG image optimization on Linux glibc. A third, high-severity flaw lets attackers max out the CPU through Server Actions; the Pages Router is not affected.
Next step
Upgrade to 16.4.1 or 15.5.28 right away, starting with apps that use Cache Components. If you can't upgrade today, at least bump sharp to 0.35.5 to close the image flaw.
Next.js: security release on October 14
Vercel is shipping an out-of-band update on Wednesday, October 14, fixing three vulnerabilities in upstream dependencies: two critical and one high. Affected versions will be listed with the advisories. Separately, Next.js 16.4, released on October 6, makes Cache Components the recommended model, and it will become the default in Next.js 17.
Next step
Book an update slot on October 14 for your Next.js apps, then try Cache Components on a branch ahead of version 17.