Critical Next.js ImageResponse SVG Flaw Enables Server Code Execution
Vulnerability Disclosure · 3 sources · Updated 2mo ago · First seen Sep 23, 2026

A critical vulnerability, CVE-2026-94545, enables unauthenticated remote code execution in the Node.js implementation of Next.js ImageResponse/next/og when applications place attacker-controlled values into server-generated SVG elements, attributes, or styles. The issue stems from Satori failing to safely handle unescaped SVG output, allowing crafted input submitted through exposed parameters, forms, or APIs to potentially execute code on the image-generation server.
Vercel fixed the flaw in Next.js 16.3.6; versions 16.2.0 through 16.3.5 are affected. Next.js 15 and Edge-runtime ImageResponse deployments are not vulnerable, and Node.js deployments that never render untrusted data into SVG are not exposed through this condition. Organizations should identify affected installations and upgrade immediately; direct Satori users should update to 0.33.5. No public exploitation or exploit code had been reported at the time of disclosure.


