Next.js October 14 Security Update: Two Critical RCEs Fixed in 16.4.1 and 15.5.28
What Shipped on October 14?
Last week I wrote about Next.js 16.4 and the security update the team had announced for October 14, 2026. The patch is now out. On October 14 the Next.js team published Next.js Security Update for Upstream Vulnerabilities, with fixes in two release lines:
- Next.js 16.4.1 (Active LTS)
- Next.js 15.5.28 (Maintenance LTS)
npm install next@16.4.1 # if you are on 16.x
npm install next@15.5.28 # if you are on 15.5
The post fixes the three issues the team announced in advance: two Critical and one High. Two of them were held back from the September 2026 security release because of upstream dependency delays. If you only have five minutes, run the right command above, redeploy, and come back for the details.
The Three Vulnerabilities at a Glance
| Advisory | Severity | What is affected | Patched in |
|---|---|---|---|
GHSA-673q-mjm6-r5xr: RCE in use cache functions returning typed arrays |
Critical (CVSS v4 9.5) | next 16.0.0 to 16.4.0 |
16.4.1 |
| CVE-2026-96889 / GHSA-2464-fhr4-w9xw: RCE in the Image Optimization API with SVG | Critical (CVSS v4 9.5) | next 10.0.0 to 15.5.27, and 16.x to 16.4.0 |
15.5.28, 16.4.1 |
| GHSA-p3m5-59mp-jv5r: DoS in App Router via Server Actions | High (CVSS v4 8.2) | next 13.0.0 to 15.5.27, and 16.0.0 to 16.4.0 |
15.5.28, 16.4.1 |
Only the image bug has a CVE ID so far. The GitHub advisories for the other two list "no known" CVE, so search for the GHSA IDs in your scanner.
1. Remote Code Execution in use cache (Critical)
This affects App Router apps that use Cache Components, the model 16.4 made the default for new apps. In the team's words, it "can lead to unauthenticated remote code execution when a use cache function returns multiple typed arrays."
Typed arrays are values like Uint8Array or Float32Array. Most apps never return them from a cached function, and Netlify's changelog entry calls the pattern unusual. Do not use that as a reason to wait, though. The advisory says there is no known workaround, and the Next.js team tells you to "upgrade immediately even if your application does not have similar functions."
The root cause is in React. The related upstream advisory, GHSA-xqc2-xf4c-x3h3, covers react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack:
- Affected: 19.0.0–19.0.8, 19.1.0–19.1.9, 19.2.0–19.2.8 and 19.3.0
- Patched: 19.0.9, 19.1.10, 19.2.9 and 19.3.1
If you use React Server Components through another framework or your own bundler setup, update those packages too. React says apps that do not use a server, or do not use a framework or bundler that supports Server Components, are not affected.
2. Remote Code Execution in Image Optimization via SVG (Critical)
This is the one with the widest reach, going all the way back to Next.js 10. A memory bug in an upstream library used by the Image Optimization API can lead to remote code execution "when Next.js runs on glibc-based Linux". glibc is the C library used by most mainstream Linux distributions.
The library is sharp. The advisory gives a workaround if you cannot upgrade Next.js right away: make sure the sharp used by Next.js is 0.35.5 or later. Check what your lockfile resolves to:
npm ls sharp
# or
pnpm why sharp
Upgrading Next.js to 16.4.1 or 15.5.28 makes your package manager pull a fixed sharp for you.
Where you host changes the risk. Netlify says next/image requests on its platform go through Netlify Image CDN, not your function, so the main attack path is not used there. It does say apps that render untrusted input with next/og's ImageResponse are affected, but only to the point of a crashed function invocation. If you self-host with next start or a container on a glibc-based Linux, assume you are fully exposed.
3. Denial of Service via Server Actions (High)
Specially crafted requests to an App Router app with at least one Server Action can cause "excessive CPU usage" that blocks other requests in the same process. Apps on the Pages Router, or with no Server Actions, are not affected. There is no workaround besides upgrading. The upstream React advisory is GHSA-h3gv-c5rc-p453.
This hurts most on a single long-running Node process, such as a VPS or a container. Netlify rates the impact on its own serverless platform as minimal, because one busy function does not slow down other requests. It still warns that active attacks could raise your function costs.
What You Should Do
- Find every Next.js app you own. Check the
nextversion in each lockfile, not justpackage.json. - On 16.x: upgrade to
next@16.4.1. - On 15.x: upgrade to
next@15.5.28. If you are on an older 15 minor, this is a jump to the latest 15.5. - On 14.x or older: the post only ships fixes for the 15.5 and 16.4 lines. The image and Server Actions bugs reach back to versions 10 and 13, so plan a move to 15.5.28 or 16.4.1.
- If you cannot upgrade today: pin
sharpto 0.35.5 or later. That covers only the image bug, not the other two. - Redeploy, then clean up old deployments. Netlify reminds users that public deploy previews and branch deploys stay vulnerable until they are deleted. The same is true of old preview URLs on any host.
- Update React packages (
react-server-dom-*) if you use Server Components outside Next.js.
If your agent setup from 16.4 is turned on (experimental.agentUpgrade, with its default 'security' policy), next dev and next build are designed to remind you about exactly this kind of release.
FAQ
Which Next.js version fixes the October 14, 2026 vulnerabilities?
Next.js 16.4.1 for the 16.x line and Next.js 15.5.28 for the 15.x line.
Is there a CVE for the Next.js use cache vulnerability?
Not at the time of writing. It is tracked as GHSA-673q-mjm6-r5xr. The SVG image bug is CVE-2026-96889.
Am I affected if I use the Pages Router?
You are not affected by the Server Actions DoS or the use cache RCE, which both need the App Router. The SVG image issue goes back to Next.js 10, so upgrade anyway.
