Next.js Patches Two Critical RCE Flaws in Caching and SVG Processing
Vulnerability Disclosure · 4 sources · Updated 29d ago · First seen Oct 15, 2026

Next.js released out-of-band updates 16.4.1 and 15.5.28 to fix two critical unauthenticated remote code execution vulnerabilities and a high-severity denial-of-service flaw. The RCE issues, each rated 9.5, affect App Router applications with Cache Components whose cached functions return multiple typed arrays, and the Image Optimization API when processing SVG images through sharp and librsvg on glibc-based Linux. The denial-of-service flaw, rated 8.2, lets crafted requests exhaust CPU resources in App Router applications with at least one Server Action. No public reports indicated exploitation of these three flaws as of October 15, although an exploit exists for an earlier next/og issue linked to the same underlying librsvg weakness.
Administrators should upgrade immediately to the appropriate patched Next.js release and verify that sharp is 0.35.5 or later, particularly on Next.js 15, where upgrading the framework alone can retain a vulnerable dependency. Updating sharp addresses only the image-processing flaw; no known workaround exists for the Cache Components or Server Actions issues. Teams should inventory applications using these features and verify deployed dependency versions directly: as of October 15, the caching and Server Actions flaws lacked CVE identifiers and entries in the advisory feed used by npm audit, limiting reliance on automated audit results.


