Next.js and React patch two critical RCEs, and npm audit may not flag two of the three advisories
The October 14 out-of-band release fixes unauthenticated RCEs in `use cache` and SVG image optimization, plus a Server Actions DoS. Two of the three advisories carry no CVE, so scanners can miss them. Upgrade to Next.js 16.4.1 or 15.5.28 by hand.
Next.js shipped an out-of-band security release on October 14, 2026, that closes
two critical unauthenticated remote code execution flaws and one high-severity
denial of service bug. The fixes land in 16.4.1 on the Active LTS line and
15.5.28 on Maintenance LTS. The detail that should change how teams handle this
one is not the severity but the paperwork: two of the three advisories shipped
without a CVE, and as of October 15 they were not in the feed npm audit reads.
A clean scanner report does not mean a patched app.
Three flaws, two of them upstream in React
The most serious issue, GHSA-673q-mjm6-r5xr, affects Next.js 16.0.0 through
16.4.0 apps that use the App Router with Cache Components. When a use cache
function returns multiple typed arrays, crafted input can lead to code execution
on the server. The root cause sits in React itself: React’s advisory,
GHSA-xqc2-xf4c-x3h3, covers react-server-dom-webpack, react-server-dom-parcel,
and react-server-dom-turbopack from 19.0.0 through 19.3.0, with fixes in
19.0.9, 19.1.10, 19.2.9, and 19.3.1. The Next.js team says there is no workaround
and recommends upgrading “even if your application does not have similar
functions.”
The second critical flaw, CVE-2026-96889 (GHSA-2464-fhr4-w9xw), lives in the
Image Optimization API. A memory bug in the SVG handling of an upstream library
used through sharp can lead to code execution when Next.js runs on glibc-based
Linux and processes untrusted SVGs. The affected range is wide: Next.js 10.0.0
through 15.5.27 and 16.x through 16.4.0. The interim fix is to make sure the
sharp that Next.js resolves is 0.35.5 or later.
The third, GHSA-p3m5-59mp-jv5r, lets crafted requests pin the CPU in App Router apps with at least one Server Action, blocking every other request on that process. It reaches back to Next.js 13.0.0 and has its own upstream React advisory, GHSA-h3gv-c5rc-p453. Pages Router apps and apps without Server Actions are not affected.
For developers, the practical point is that the React Server Components protocol is now a recurring attack surface, not a one-off. The typed-array trigger is narrow, but the React packages it lives in also ship inside frameworks other than Next.js.
Why your scanner may stay quiet
The Hacker News, reporting independently on October 15, noted that the use cache and Server Actions advisories had no CVE and did not appear in npm’s
advisory database, so dependency scanners that key off it may not flag them. The
image flaw is easier to catch because it carries a CVE and surfaces through
sharp’s own advisory. The same report adds a 15.x trap: 15.5.28 still permits
the older sharp 0.34.x line, so a lockfile can hold on to the vulnerable
library after the Next.js bump. Running npm ls sharp after upgrading is the
quick check.
There is also a real disagreement on severity. Vercel rates both RCEs at 9.5,
while Red Hat scores CVE-2026-96889 at 7.8 on the grounds that exploitation needs
a malicious file to be processed. The sharp maintainer cautioned that whether
the underlying memory bug yields code execution or only a crash may depend on the
Node.js build. None of that makes the patch optional; it does mean the image
flaw’s real-world ceiling is less settled than the headline score suggests.
Hosting changes the blast radius, not the advice
Where an app runs matters more than usual here. Netlify says its Image CDN
handles next/image on its platform, so the vulnerable optimizer path is not
exercised there, and that the Server Actions DoS has limited effect on its
autoscaling functions beyond possible cost spikes. The use cache RCE, though,
applies on Netlify whenever an app meets the conditions. Netlify also flags a
detail that is easy to miss on any platform: public deploy previews and branch
deploys keep running old builds until someone deletes them.
That last point generalizes. Patching main closes the production door, but
preview URLs built last week from the vulnerable version stay reachable unless
they are torn down.
What to do and what to watch
Upgrade to next@16.4.1 or next@15.5.28, confirm sharp resolves to 0.35.5 or
later, redeploy, and clear out stale preview deployments. Teams on other React
Server Components frameworks should check which react-server-dom-* version
their lockfile pins. As of October 15, no exploitation of the three flaws had
been reported.
The pattern is worth watching more than any single advisory. By The Hacker News’s count, this is the third code-execution issue in Next.js image processing since August, and the second out-of-band release in a month. As frameworks pull more rendering, caching, and image work onto the server, their security posture increasingly depends on upstream libraries most application teams never read, and on advisory metadata reaching the tools those teams actually check.
- Next.js Security Update for Upstream Vulnerabilities, October 14, 2026 (Next.js) nextjs.org
- Unauthenticated Remote Code Execution in React Server Components, GHSA-xqc2-xf4c-x3h3 (React advisory) github.com
- Unauthenticated RCE in Image Optimization API when SVG files are used, CVE-2026-96889 (Next.js advisory) github.com
- Next.js Ships Out-of-Band Patch for Two Critical RCE Flaws in Caching and SVG Processing (The Hacker News) thehackernews.com
- Next.js & React security release (Oct 2026): what to know (Netlify) www.netlify.com