← All articles

Next.js October 2026 security patches: which version to install

Two critical RCE issues and a DoS fixed in Next.js 16.4.1 and 15.5.28. Patched versions, affected conditions, sharp mitigation and static exports.

Next.jsWeb developmentPerformance
Next.js editorial cover with a shield and recommended versions 16.4.3 and 15.5.28
Editorial cover supplied by Meuveryone; conceptual illustration.

Direct answer: On 14 October 2026 Next.js published fixes for two critical remote code execution issues and one high-severity denial of service. The patched minimums for these advisories are 16.4.1 and 15.5.28. Version 16.4.3 is the latest stable 16.x release at the 26 October cutoff.

What was fixed

  • RCE in use cache: GHSA-673q-mjm6-r5xr affects Next.js 16.0.0–16.4.0 applications with Cache Components and a use cache function returning multiple typed arrays. Fixed in 16.4.1; critical, CVSS 9.5.
  • RCE through SVG image optimization: GHSA-2464-fhr4-w9xw, linked to CVE-2026-96889, affects 10.0.0–15.5.27 and 16.0.0–16.4.0 under the advisory’s glibc Linux conditions. Fixed in 15.5.28 and 16.4.1; critical, CVSS 9.5.
  • DoS in Server Actions: GHSA-p3m5-59mp-jv5r affects App Router applications with at least one Server Action in 13.0.0–15.5.27 and 16.0.0–16.4.0. Fixed in 15.5.28 and 16.4.1; high, CVSS 8.2. The consulted advisory has no assigned CVE.

Which version to install

Release lineMinimum for these advisoriesCurrent at 26 October 2026
16.x16.4.116.4.3
15.x15.5.2815.5.28
14.x and earlierNo patch in that lineMigrate to a patched line

These minimums concern the named advisories. They are not a guarantee against every future vulnerability. The 16.4.3 release contains backported bug fixes.

Mitigations and updating

Upgrade Next.js to a patched release. The use cache and Server Actions advisories provide no workaround. For the SVG issue, the official advisory does describe ensuring that the sharp dependency is at least 0.35.5. A patched Next.js release forces a corrected dependency. That SVG mitigation does not fix the other two issues.

  1. Check the installed Next.js version and the resolved lockfile, not only a version range in package.json.
  2. Update an affected 15.x or 16.x installation to a patched version in its line.
  3. Prioritize image optimization with SVG on glibc Linux and affected use cache functions.
  4. Rebuild and test the application’s routes, images and Server Actions where used.
  5. Redeploy the corrected build and confirm which version actually runs in production.

Frequently asked questions

Which Next.js versions fix these issues? 16.4.1 or later in the 16.x line and 15.5.28 in the 15.x line. At this article’s cutoff, 16.4.3 is the latest stable 16.x release.

Are 14.x and earlier patched? These advisories do not offer a patch in those lines. Plan a migration to a corrected release line.

Does this article validate a public exploit? No. The official severity and affected conditions are sufficient reason to prioritize patching without waiting for confirmed exploitation.

Are purely static exports affected in production? A pure static export without a Next.js server, image optimizer or Server Actions does not expose those runtime paths in production. Still review dependencies and the build environment.

Sources and editorial review

Reviewed on 26 October 2026 against the maintainers’ advisories. For feature context, see Next.js 16.4 and Cache Components.

THE PRACTICAL TAKEAWAY

Check the installed version and exposed features, update, build and verify the deployment. The listed minimums fix these particular advisories.

Explore the related service ↗
LET’S APPLY IT

A question worth
working through.

Talk about your project ↗