On 14 October 2026 the Next.js team published an out-of-band security update, announced a week earlier. It fixes three vulnerabilities that come from upstream dependencies: two rated critical and one rated high. Two of them had been held back from the September security release while the fixes were coordinated.

What was fixed

  • Remote code execution through cached functions. On the App Router with Cache Components, a function marked “use cache” that returns several typed arrays could let an attacker run code on the server without logging in. There is no workaround.
  • Remote code execution through image optimisation. A memory bug in sharp, the library Next.js uses to optimise images, could be triggered with an SVG on servers running glibc-based Linux.
  • Denial of service through Server Actions. Crafted requests could tie up the CPU and block other requests on App Router sites with at least one Server Action.

What to do

  • Upgrade to Next.js 16.4.1 or 15.5.28, depending on your release line. These are the two lines that received patches.
  • Check that your lockfile resolves sharp to version 0.35.5 or later after the upgrade.
  • Redeploy. A patched package in your repository protects nothing until the new build is live.
  • Do it even if you think you do not use the affected features. The Next.js team advises upgrading regardless.

If your site runs on an older release line, there is no patch for it. The fix is to move to a supported version, and the sooner that is planned, the less it costs.

The routine that makes this boring

This was not the first Next.js security release this year, and it will not be the last. Popular frameworks get close attention from researchers and attackers alike. The sites that get through these rounds calmly have a routine: dependencies updated on a schedule, a build that can be redeployed in minutes, and someone who reads the advisories when they come out.

Sources

Running Next.js and not sure you are patched? Talk to us.