Next.js ImageResponse Vulnerability Lets Remote Attackers Execute Code Through SVG Content
Unauthenticated attackers can execute code on Next.js 16.2.0–16.3.5 servers via crafted SVG in ImageResponse.
A flaw tracked as GHSA-vcvr-r3jv-pc5j in Next.js ImageResponse can let unauthenticated remote attackers execute code by supplying crafted values that are rendered into SVG. It affects the Node.js next/og path in versions 16.2.0 through 16.3.5 when untrusted input reaches SVG content, attributes, or styles via Satori. Vercel released Next.js 16.3.6, with 15.5.26 as related hardening for the 15.x line, and Satori 0.33.5 includes the library fix. Edge ImageResponse and applications that never insert attacker-controlled data are out of scope, and the report does not cite in-the-wild exploitation.
- Unauthenticated RCE affects Next.js 16.2.0 through 16.3.5 Node.js ImageResponse.
- Attacker-controlled SVG content, attributes, or styles are not properly escaped.
- Edge ImageResponse and apps that never embed untrusted input are unaffected.
- Upgrade to Next.js 16.3.6; 15.5.26 hardens 15.x; Satori fixed in 0.33.5.
- Vendors
- Vercel
- Products
- Next.jsSatoriImageResponse
- Organizations
- Vercel
From the original article
2 min read at gbhackers.com
A critical vulnerability in Next. js could let unauthenticated remote attackers execute code on affected servers by supplying crafted input that gets rendered into SVG content during dynamic image generation. This issue, tracked as GHSA-vcvr-r3jv-pc5j, affects the Node.
By Divya · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.