Critical RCE in Next.js Node.js ImageResponse via Satori SVG Escaping
Vulnerability Disclosure · 3 sources · Updated 2mo ago · First seen Oct 1, 2026

A critical unauthenticated remote-code-execution vulnerability, tracked as CVE-2026-94545 and GHSA-vcvr-r3jv-pc5j, affects Next.js applications that use the Node.js implementation of next/og ImageResponse. Improper escaping in the upstream Satori library (GHSA-wx4j-mvgx-mqwp) can let attacker-controlled values placed in generated SVG content, attributes, or CSS reach a downstream SVG parser and potentially execute code on the server. Public Open Graph image-generation routes that accept query parameters are a key exposure point.
The issue affects Next.js 16.2.0 through 16.3.5 and Satori 0.0.27 through 0.33.4 when untrusted data enters Node.js SVG-rendering paths. Organizations should upgrade to Next.js 16.3.6 or 15.5.26 and Satori 0.33.5, then audit image-generation endpoints and prevent untrusted input from reaching SVG or style rendering while upgrades are pending. Edge-runtime ImageResponse deployments and implementations rendering only trusted content are not affected.


