Next.js security update, October 2026: what it fixed and what to do

On 14 October Next.js fixed two critical remote code execution flaws, one of them from React Server Components, in its fourth security release in 50 days. Here is what each release covered, how to check and patch a marketing site, what your host does for you, and a routine for a small team.

On 14 October 2026 Next.js released 16.4.1 and 15.5.28. They fix two critical flaws that can let an attacker run code on your server without logging in, one of them inherited from React Server Components, plus a high severity denial of service. If your site runs Next.js 15 or 16, upgrade to one of them and check that the new version reached production.

It was the fourth Next.js security release in 50 days, after 25 August, 22 September and 30 September. If someone else maintains your site, the five questions at the end are for you.

The short version

  1. 01On Next.js 16, upgrade to 16.4.1 or later. On Next.js 15, upgrade to 15.5.28. No fixed version was published for 14 or older. (Update, November 2026: On 3 November Next.js released 16.4.5 and 15.5.29, which fix seven more issues, none of them rated critical. Upgrade to those versions or later. They were still the latest security fixes on 21 November; 16.4.6, released on 9 November, carries bug fixes only.)
  2. 02After the upgrade, check that the sharp image library is 0.35.5 or later. On the 15 line, by our reading of its version range, the upgrade does not force it.
  3. 03Confirm the fix reached production. On a live Next.js page, typing next.version in the browser console shows the version the page was built with.
  4. 04Your host may block some attacks before you patch. It does not change the code inside your deployed build. Netlify told its customers to upgrade and redeploy.
  5. 05Keep a routine: dependency alerts on, a standing patch slot with a fast lane for critical fixes, the newest minor version, and a rollback you have tried.
  6. 06If you are on Next.js 15, plan the move to 16. By the support policy, Next.js 15 security updates are due to stop on 21 October 2026. (Update, November 2026: Next.js has since extended security releases for Next.js 15 through 31 January 2027.)

What the 14 October Next.js and React release fixed

The release fixes two critical remote code execution flaws, one in use cache and one in image optimization, and a high severity denial of service in Server Actions. React published fixed versions of its server packages the same day.

IssueAdvisoryAffected Next.jsConditionWorkaround
Code execution in use cache (critical)GHSA-673q-mjm6-r5xr, from React GHSA-xqc2-xf4c-x3h316.0.0 to 16.4.0App Router with Cache Components, a use cache function that returns multiple typed arraysNone
Code execution in image optimization with SVG (critical)CVE-2026-96889, GHSA-2464-fhr4-w9xw10.0.0 to 15.5.27, and 16.x up to 16.4.0Next.js running on glibc-based Linuxsharp 0.35.5 or later
Denial of service in Server Actions (high)GHSA-p3m5-59mp-jv5r, from React GHSA-h3gv-c5rc-p45313.0.0 to 15.5.27, and 16.0.0 to 16.4.0App Router with at least one Server ActionNone

The use cache flaw starts in React Server Components

React's advisory covers react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack from 19.0.0 to 19.3.0, fixed in 19.0.9, 19.1.10, 19.2.9 and 19.3.1. React says it affects only "extremely rare cases where responses transport multiple typed arrays". The react and react-dom packages are not named in the advisory. Next.js includes the affected packages, as Vercel listed in its December 2025 summary of the previous React flaw, and the Next.js advisory gives its own fixed version. So in a Next.js project you fix it by upgrading next. The Next.js team asks every affected app to upgrade, even one with no such function.

This is the second critical remote code execution flaw in React Server Components in under a year. The first, CVE-2025-55182, was disclosed on 3 December 2025. React's denial of service advisory of 14 October gives a narrower affected range in its text than in its version table. The fixed versions are the same in both.

The SVG flaw comes from a library inside sharp

The library is librsvg, which sharp bundles. sharp published the fix in 0.35.5 on 27 September and its own advisory on 30 September. sharp rates the issue high; Next.js rates it critical. The Next.js image docs say the optimizer does not optimize SVG files by default. The advisory does not name that setting as a condition, so we would not treat the default as protection.

New Next.js 16.4 projects have Cache Components on

Next.js 16.4, released on 6 October, recommends Cache Components for every app and turns them on by default in new projects made with create-next-app. A project started that week with create-next-app meets the first condition of the use cache advisory unless someone switched the feature off.

What the 25 August Next.js release fixed

Next.js 16.3.3 and 15.5.24 fixed two critical remote code execution flaws. The release had been announced for 26 August with one critical fix and was moved a day forward when a second one was found.

IssueAdvisoryAffected Next.jsConditionWorkaround
Code execution in image optimization with AVIF (critical)GHSA-2xp9-vwfh-vxw410.0.0 before 15.5.24, and 16.x before 16.3.3The optimizer processes an attacker-controlled AVIF imageNone given; the patched releases switch off AVIF optimization
Code execution on Windows servers (critical)CVE-2026-75604, GHSA-p293-qw3h-jr3613.4 before 15.5.24, and 16.0 before 16.3.3Pages Router and App Router without Cache Components, on a Windows filesystemNone

The AVIF flaw is in libheif, which sharp uses to decode AVIF images. Vercel's write-up traces the chain: the <Image> component calls /_next/image, which calls sharp, then libvips, then libheif. The patched releases switch off AVIF optimization until a fixed libheif reaches them, and serve AVIF images as they are, without resizing. If your pages use large AVIF source images, we would check page weight after the upgrade.

Your page with the next/image Image component /_next/image (Next.js image optimizer) sharp libvips libheif librsvg bundled with sharp AVIF flaw, critical GHSA-2xp9-vwfh-vxw4 Next.js 16.3.3 and 15.5.24 (25 August) switch off AVIF optimization. SVG flaw, critical CVE-2026-96889 Fixed in sharp 0.35.5; Next.js 16.4.1 and 15.5.28 (14 October) Next.js code Upstream libraries Severity as rated by Next.js.
Both critical image flaws sit below Next.js, in libraries that sharp uses: libheif for AVIF, librsvg for SVG

The Windows flaw affects only servers on a Windows filesystem. Linux and macOS are not affected, and the advisory gives no workaround.

Four Next.js security releases in 50 days

The two releases in between added one more critical flaw and seven lower ones. All five critical Next.js advisories since the scheduled security programme started in July came in the four releases from 25 August to 14 October.

Next.js advisories per security release, by severity
July (16.2.11)
Critical: 0 High, medium or low: 9
25 Aug (16.3.3)
Critical: 2 High, medium or low: 0
22 Sep (16.3.6)
Critical: 1 High, medium or low: 0
30 Sep (16.3.8)
Critical: 0 High, medium or low: 7
14 Oct (16.4.1)
Critical: 2 High, medium or low: 1

Next.js blog, security release posts, July to October 2026

On 22 September an unscheduled release, 16.3.6, fixed a critical flaw in the Node.js version of ImageResponse in next/og, the API that generates social preview images. It affected 16.2.0 to 16.3.5, in apps that pass attacker-controlled values into the generated SVG, and started with improper escaping in Satori, an upstream library. The Edge version was not affected, and 15.x got hardening only.

On 30 September the scheduled release fixed seven issues: one high, five medium and one low. The high one is server-side request forgery in image optimization, and it applies only if images.remotePatterns is configured. Two of the medium ones read like marketing incidents as much as security ones. One is cache poisoning that can make a statically generated page serve another route's content to every visitor, on self-hosted Pages Router sites; Vercel is not affected. The other can let unpublished Draft Mode preview content reach a public page when Cache Components are on. We would not let a medium rating push those to the back of the queue.

Fixes ship only on the newest minor version

In all four releases, each fix shipped on the newest minor version of each supported line, and on no older one. The August fix came in 16.3.3, 22 days after 16.3.0 shipped on 3 August; the last 16.2 release was 16.2.12 on 25 July. The October fix came in 16.4.1, when 16.4.0 was eight days old; the last 16.3 release was 16.3.8 on 30 September. Next.js 14 has had no release since 14.2.35 on 11 December 2025. If your site sits one minor version behind, a security fix means a minor upgrade.

Which advisories touch the features of a marketing site

Find the features your site uses in the first column.

If your site usesAdvisoryReleasedSeverityCondition
next/image optimizerAVIF code execution, GHSA-2xp9-vwfh-vxw425 AugCriticalAttacker-controlled AVIF image is optimized
next/image optimizerSVG code execution, CVE-2026-9688914 OctCriticalServer on glibc-based Linux
next/image with remote imagesRequest forgery, CVE-2026-9448330 SepHighimages.remotePatterns configured
next/og social imagesCode execution, GHSA-vcvr-r3jv-pc5j22 SepCriticalNode.js ImageResponse with attacker-controlled values in the SVG, 16.2.0 to 16.3.5
Server Actions, for example a formDenial of service, GHSA-p3m5-59mp-jv5r14 OctHighAt least one Server Action
Cache ComponentsCode execution, GHSA-673q-mjm6-r5xr14 OctCritical16.x; upgrade even without the pattern
CMS previews with Draft ModeDraft content leak, CVE-2026-9454430 SepMediumCache Components and draft-dependent cached functions
Self-hosted static pagesCache poisoning, CVE-2026-9454330 SepMediumPages Router with SSG or ISR
A Windows serverCode execution, CVE-2026-7560425 AugCriticalPages Router and App Router without Cache Components

How to check which Next.js version your site runs

Check two places: the repository and the live site. They differ whenever an upgrade was merged and never deployed.

  1. 01In the repository, run npm ls next react react-dom sharp, or the pnpm or Yarn equivalent. package.json shows the range you allow. The lockfile and npm ls show what is actually installed, and that is the number to compare with the advisory.
  2. 02npx next --version prints the installed Next.js version.
  3. 03On the live site, open any page, open the browser's developer tools and type next.version in the console. Next.js sets window.next.version when the page starts. It shows the version the page's scripts were built with. In our view it is the fastest proof that a deploy happened, and it says nothing about server code you deploy separately.
CHROME DEVTOOLS SCHEMATIC localhost:3000 Console > next.version < '16.4.1' Version this page was built with
Typing next.version in the browser console shows the Next.js version a live page was built with

What counts as patched on 16 October:

You runFixed versionAlso check
Next.js 16.x16.4.1 or later (16.4.2 followed on 15 October with bug fixes)sharp 0.35.5 or later
Next.js 15.x15.5.28sharp 0.35.5 or later; its version range still allows 0.34
Next.js 14.x or olderNo fixed version publishedsharp 0.35.5 or later covers the SVG flaw only; plan an upgrade
React Server Components without Next.jsreact-server-dom-* 19.0.9, 19.1.10, 19.2.9 or 19.3.1The framework or bundler plugin's own advisory

How to patch Next.js and verify the fix

Upgrade on a branch, confirm the versions the lockfile resolves, test, deploy, then check the live site.

  1. 01Create a branch and run the command for your line from the Next.js post: npm install next@16.4.1 or npm install next@15.5.28. If you are on 16.3 or older on the 16 line, this is a minor upgrade, so read the 16.4 release notes first. (Update, November 2026: The 3 November security release moved the fixed versions to 16.4.5 and 15.5.29, so run npm install next@16.4.5 or npm install next@15.5.29. Next.js 15.5.29 still accepts sharp ^0.34.3 || ^0.35.5, so step 2 still applies.)
  2. 02Run npm ls next sharp. sharp must be 0.35.5 or later. Next.js 16.4.1 asks for sharp ^0.35.5, so it pulls the fix in. The Next.js advisory says upgrading to the patched versions makes package managers provide a fixed sharp. Our reading of the npm metadata is less sure for 15: Next.js 15.5.28 still accepts ^0.34.3 || ^0.35.5, and sharp's advisory lists every version before 0.35.5 as affected, so a lockfile that already holds a 0.34 release can keep it. Look as well for an override or resolution in package.json that pins an older sharp.
  3. 03If sharp is older, raise it to 0.35.5, for example with an override in package.json, reinstall, and run step 2 again.
  4. 04Build and test. Run next build and your tests, then open the pages that bring you business: home, pricing, the contact form, a page with images and a page whose social preview image is generated.
  5. 05Deploy to production. Open the live site and type next.version in the console. It should show the new version.
  6. 06Delete the old preview deployments you do not need, or rebuild them. Netlify warns that public deploy previews and branch deploys may stay vulnerable until they are deleted.
  7. 07Write down the date, the version and who deployed it. The next advisory will raise the same questions.

What your host does: Vercel, Netlify and your own server

A host can switch off a vulnerable path on its own servers or add firewall rules before you patch. It cannot change the Next.js version inside the build you deployed, so the fix is still yours to ship.

Since July, Next.js announces scheduled releases in advance partly so it can coordinate such mitigations with hosting providers. What each host did differed by release:

  • Vercel, August. Vercel said apps hosted on it were protected and needed no upgrade, configuration change or redeploy. Its write-up says it disabled AVIF optimization in its central Image Optimization Service on 13 August, 12 days before the public release. Its Linux runtime was outside the Windows flaw.
  • Vercel, September and October. The 30 September post says Vercel is not affected by one of the cache poisoning issues. Vercel's changelog has no entry for the 22 September, 30 September or 14 October releases. For the December 2025 React flaw it added firewall rules and still told customers not to rely on them for full protection and to upgrade.
  • Netlify, October. Netlify recommended upgrading next and redeploying. On its platform next/image is served by Netlify Image CDN, so the SVG path through the optimizer is not used; through next/og ImageResponse with untrusted input the same flaw can crash a function invocation. Apps that meet the use cache conditions are affected there. Netlify rates the denial of service as minimal impact on its platform, though active exploitation could raise function costs. (Update, November 2026: For the 3 November release Netlify again recommended upgrading next and redeploying. One of those issues also needs its Next.js adapter, @netlify/plugin-nextjs, at 5.16.6 or later; a redeploy installs it unless you pinned the adapter's version.)
  • Your own server. On a VPS, in Docker or on Windows, you are the platform, and the Windows and glibc conditions are about your machine. sharp's advisory adds that to avoid code execution you should run a Node.js binary compiled as a Position Independent Executable, and that the official Node.js binaries are not built that way.

Netlify's warning about deploy previews is one case of a wider rule: no host edits your package.json or lockfile, and an old build stays old. In our view that applies to any earlier deployment still reachable at a URL, and to the deployment you would roll back to.

Your host can block an attack path. It does not change the Next.js version inside a build. New production deployment next 16.4.1 Repository package.json and lockfile next 16.4.1 sharp 0.35.5 build and deploy ! Deploy preview still reachable at a URL next 16.4.0 ! Branch deploy next 16.4.0 ! Previous production deployment (your rollback target) next 16.4.0 Delete old previews you do not need, or rebuild them.
A fix reaches only the builds you deploy after it; older previews and your rollback target keep the old version

A patch routine for a small team

In our view the part that matters most is a fixed patch window with a fast lane, because the notice is short. Someone has to run this routine for every Next.js site; our comparison of Webflow, WordPress and Next.js for a marketing site sets that work against the other two platforms.

Since its July announcement, Next.js publishes advance notice of scheduled security releases roughly once a month, with the highest expected severity. From August to October the notice ran from zero to seven days:

Days of public notice before each Next.js security release
25 Aug
5
22 Sep
0
30 Sep
7
14 Oct
6

Next.js blog, announcement and release posts, August to October 2026

The notices went out on 20 August, 22 September (the same day as that release), 23 September and 8 October. The routine we would set up has five parts:

  1. 01Keep a list. Every site, its framework and version, where it is hosted, where the code lives and who can deploy it. One table is enough.
  2. 02Turn on alerts. Enable Dependabot alerts and security updates on the repository. Since 14 July 2026 Dependabot waits at least three days before opening a version update by default, and security updates still open immediately. Follow the Next.js blog, where the advance notices appear. On 16.4, the experimental agentUpgrade setting defaults to reminding you during next dev and next build about upgrades that fix known vulnerabilities in your installed version.
  3. 03Hold a patch window. We would keep a fixed weekly or fortnightly slot for routine updates, with a fast lane beside it. In that lane we would ship a critical advisory that applies to your site within one working day of the release and a high one within the week; medium and low wait for the next slot. With five to seven days of notice for three of the four releases, you can book the people before the patch exists.
  4. 04Stay on the newest minor of a supported line. Since August the fixes shipped only there, so staying current keeps every fix one small step away. On Next.js 15, plan the move to 16: the support policy keeps a major version in Maintenance LTS for two years after its release, and 15 came out on 21 October 2024. If the move turns into a rebuild, our guide to what a B2B website costs in Europe in 2026 gives price ranges by type of build.
  5. 05Keep a way back. On Vercel, Instant Rollback points your domains to an earlier production deployment in seconds, without a rebuild. A deployment removed by your retention policy cannot be rolled back to. If you self-host, keep the previous image or build. One caution from us: rolling back past a security fix puts the hole back. When a patch breaks something, we would roll forward to a fixed build with the breaking change reverted. And try the rollback once on a quiet day, before you need it under pressure.

Five questions to ask whoever maintains your site

You do not need to read code to know whether your site is patched. Ask these five and expect short, specific answers.

  1. 01Which Next.js version is live on our site today, and when did it last change? A good answer is a number such as 16.4.1 and a date. You can check the number yourself with next.version in the browser console.
  2. 02Did the 25 August and 14 October fixes reach production, and on which dates?
  3. 03Where is the site hosted, and what did the host say about these advisories?
  4. 04Who receives security alerts for our site, and how fast does a critical fix go live?
  5. 05If an update breaks the site, how do we roll back, and has anyone tried it? If the site is on Next.js 15, ask for the plan and the date for moving to 16.

We think a maintainer who has to look up the first answer once is fine. One who has to look it up every time has no routine yet.

Sources

  1. 01Next.js, Next.js Security Update for Upstream Vulnerabilities, 14 October 2026
  2. 02Next.js, Upcoming Next.js Security Update for Upstream Vulnerabilities, 8 October 2026
  3. 03Next.js, Next.js 16.4, 6 October 2026
  4. 04Next.js, September 2026 Security Release, 30 September 2026
  5. 05Next.js, Upcoming Next.js September Security Release, 23 September 2026
  6. 06Next.js, Next.js Security Update for a Critical Upstream Issue, 22 September 2026
  7. 07Next.js, Upcoming Next.js Security Update for a Critical Upstream Issue, 22 September 2026
  8. 08Next.js, August 2026 Security Release, 25 August 2026
  9. 09Next.js, Update: August Next.js Security Release, 25 August 2026
  10. 10Next.js, Upcoming Next.js August Security Release, 20 August 2026
  11. 11Next.js, July 2026 Security Release, 20 July 2026
  12. 12Next.js, Next.js Security Release and Our Next Patch Release, 13 July 2026
  13. 13Next.js, Support Policy, page as archived on 16 October 2026
  14. 14Next.js, Image Component, last updated 28 September 2026
  15. 15vercel/next.js on GitHub, Unauthenticated Remote Code Execution in use cache functions returning typed arrays (GHSA-673q-mjm6-r5xr), 14 October 2026
  16. 16vercel/next.js on GitHub, Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used (GHSA-2464-fhr4-w9xw), 14 October 2026
  17. 17vercel/next.js on GitHub, Denial of Service in App Router using Server Actions (GHSA-p3m5-59mp-jv5r), 14 October 2026
  18. 18vercel/next.js on GitHub, Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used (GHSA-2xp9-vwfh-vxw4), 25 August 2026
  19. 19vercel/next.js on GitHub, Unauthenticated Remote Code Execution on windows-hosted servers (GHSA-p293-qw3h-jr36), 25 August 2026
  20. 20vercel/next.js on GitHub, Release v16.4.2, 15 October 2026
  21. 21vercel/next.js on GitHub, packages/next/src/client/app-bootstrap.ts at v16.4.1, 14 October 2026
  22. 22React on GitHub, Unauthenticated Remote Code Execution in React Server Components (GHSA-xqc2-xf4c-x3h3), 14 October 2026
  23. 23React on GitHub, Denial of Service in Server Functions (GHSA-h3gv-c5rc-p453), 14 October 2026
  24. 24sharp on GitHub, Vulnerability in librsvg dependency CVE-2026-96889 (GHSA-wq5f-xc86-pv6w), 30 September 2026
  25. 25npm, next: version list and package metadata for 16.4.1 and 15.5.28, versions published from 11 December 2025 to 15 October 2026
  26. 26npm, sharp 0.35.5, 27 September 2026
  27. 27Vercel, Vercel applications are protected from Next.js August 2026 security vulnerabilities, 25 August 2026
  28. 28Vercel, Reproducing, disclosing, and fixing the libheif vulnerability with Hacktron and the maintainers, 18 September 2026
  29. 29Vercel, Deployment Storage keeps your deployments rollback-ready, 21 August 2026
  30. 30Vercel, Summary of CVE-2025-55182, 3 December 2025
  31. 31Netlify, Next.js & React security release (Oct 2026): what to know, 14 October 2026
  32. 32GitHub, Dependabot version updates introduce default package cooldown, 14 July 2026
  33. 33vercel/next.js on GitHub, Remote Code Execution in next/og ImageResponse (GHSA-vcvr-r3jv-pc5j), 22 September 2026
  34. 34React on GitHub, Security advisories for react/react, advisories published from 3 December 2025 to 14 October 2026
  35. 35Next.js, November 2026 Security Release, 3 November 2026
  36. 36Next.js, Support Policy, page as archived on 29 October 2026, the first archived copy with the Next.js 15 extension
  37. 37npm, next 15.5.29, 3 November 2026
  38. 38Netlify, Next.js security release (Nov 2026): what to know, 3 November 2026
  39. 39vercel/next.js on GitHub, Release v16.4.6, 9 November 2026
  40. 40vercel/next.js on GitHub, Security advisories for vercel/next.js, read 21 November 2026

Frequently asked questions

Is my Next.js site affected by the October 2026 React Server Components vulnerability?

The critical use cache flaw affects Next.js 16.0.0 to 16.4.0 apps that use the App Router with Cache Components. The Next.js team asks affected apps to upgrade to 16.4.1, even if they have no use cache function that returns typed arrays. Next.js 15 is outside that range, but 15.5.27 and older fall in the affected ranges of the SVG image flaw and the Server Actions denial of service fixed on the same day.

Which versions fix the August and October 2026 Next.js vulnerabilities?

Next.js 16.4.1 and 15.5.28, released on 14 October 2026, are outside the affected ranges of both the August and the October advisories. (Update, November 2026: Next.js 16.4.5 and 15.5.29, released on 3 November, fix seven later issues, none rated critical, so upgrade to those or later.) After upgrading, check that the sharp image library is 0.35.5 or later. No fixed version was published for Next.js 14 or older.

My site is hosted on Vercel or Netlify. Do I still need to upgrade?

For the August release, Vercel said hosted apps were protected and needed no upgrade or redeploy. For the October release, Netlify told its customers to upgrade and redeploy, Vercel's changelog has no entry, and the Next.js post asks everyone to patch. A host can block an attack path, but your deployed build keeps its old Next.js version until you deploy a new one.

How can I check my site's Next.js version without access to the code?

Open any page of the site, open the browser's developer tools and type next.version in the console. Next.js sets this value when the page starts, so it shows the version the page was built with. Below 16.4.1 on the 16 line, or below 15.5.28 on the 15 line, the October fixes are not live.

How long will Next.js 15 get security updates?

The Next.js support policy keeps each major version in Maintenance LTS for two years after its first release. Next.js 15 was released on 21 October 2024, so by that policy its security updates are due to end on 21 October 2026. (Update, November 2026: Next.js has since extended security releases for Next.js 15 through 31 January 2027.) A site on Next.js 15 needs a plan to move to 16.

  • Next.js
  • React Server Components
  • Web security
  • Website maintenance

Recommended Reading

View all articles

Let's find your next move.

Direct, confidential, and pragmatic. Discuss channel opportunities, technical audits, or tailored team scope with our senior practice leads.

WhatsAppTelegram

Warsaw · 09:00–18:00 CET