A newly discovered vulnerability in Next.js enables attackers to execute code on a server through ImageResponse, a feature responsible for generating Open Graph and other social preview images, according to Vercel This article explores vulnerability js enables. . The risk arises when an app injects values controlled by an attacker into an image, such as text read from the request URL.
The vulnerability, identified as CVE-2026-94545, impacts Next.js versions 16.2.0 to 16.3.5 when ImageResponse runs on the Node.js runtime, which is utilized by default by Next.js. ImageResponse leverages Satori, a Vercel library, to transform image layouts into SVG code prior to the final PNG generation. Applications that "accept attacker-controlled values into SVG content, attributes, or styles during image creation" are at risk, as per the advisory.
If the upgrade needs to wait, the workaround involves keeping attacker-controlled values away from the SVG content, attributes, and styles rendered by Node.js ImageResponse. The company highlighted that two significant vulnerabilities in Next.js were addressed in August, stating that these apps were already secure and did not require any updates. Satori's own advisory, released on the same day, indicates that certain values bypassed proper escaping, allowing for the reading of SVG code as plain text.
Satori assigns a moderate risk to CVE, with a score of 5.3, and notes that the impact varies based on how SVG output is utilized.












