Critical NEXT.JS Flaw Allows Remote Code Execution Via Weaponized SVG File
Next.js CVE-2026-94545 can allow unauthenticated remote code execution through malicious SVG in ImageResponse.
CVE-2026-94545 is a critical flaw in the Node.js ImageResponse implementation of Next.js next/og, affecting versions 16.2.0 through releases before 16.3.6. If an application embeds attacker-controlled data in SVG elements, attributes, or styles, a remote unauthenticated attacker can trigger remote code execution during image generation. GitHub advisory GHSA-vcvr-r3jv-pc5j rates it Critical under CVSS v4. Edge ImageResponse deployments and applications that never place untrusted values in SVG content are not affected; the patched release is 16.3.6. Active exploitation is not reported.