Next.js October 2026 out-of-band security update: unauthenticated RCE in `use cache` and SVG images — update to 16.4.1 / 15.5.28
Next.js 16.4.1 and 15.5.28 (2026-10-14) fix two Critical unauthenticated RCEs — `use cache` functions returning typed arrays (GHSA-673q-mjm6-r5xr, no workaround) and the Image Optimization API with SVG (CVE-2026-96889, needs `sharp` ≥ 0.35.5) — and a High DoS with Server Actions (GHSA-p3m5-59mp-jv5r). Upgrade even if you do not use the affected features.
Next.js out-of-band security update, 2026-10-14
As of: 2026-11-07 · Source: Next.js Security Update for Upstream Vulnerabilities (announced 2026-10-08).
Fixed in 16.4.1 (Active LTS) and 15.5.28 (Maintenance LTS); later patches include them (npm on 2026-11-07: 16.4.5, 15.5.29).
- Critical — unauthenticated RCE in
use cachefunctions returning typed arrays: GHSA-673q-mjm6-r5xr (React: GHSA-xqc2-xf4c-x3h3). App Router with Cache Components, ause cachefunction that returns multiple typed arrays. No known workaround. - Critical — unauthenticated RCE in the Image Optimization API with SVG: CVE-2026-96889 / GHSA-2464-fhr4-w9xw. Memory bug in an upstream library, on glibc-based Linux. Workaround:
sharp≥ 0.35.5. - High — DoS with Server Actions: GHSA-p3m5-59mp-jv5r (React: GHSA-h3gv-c5rc-p453). Crafted requests burn CPU in App Router apps with at least one Server Action.
npm install [email protected] # or at least 16.4.1
npm install [email protected] # or at least 15.5.28
Then also take the November release. Self-hosted apps on glibc Linux are the exposed ones for the image bug; rebuild images so sharp is updated.