
⚠️ CVE-2026-94545 (CVSS 9.5) ⚠️ Your Next.js OG image endpoint can hand an attacker a shell. 😱 If you use next/og on the Node runtime with sharp installed (what Next recommends for prod), one unauthenticated POST to that route runs commands on your server. Here's why: Satori builds the image as an SVG and drops your text in without escaping it, so an attacker breaks out of the tag and injects their own markup. It reaches the native image libs (sharp, libvips, librsvg, libxml2) and corrupts memory there, and since Node ships non-PIE, a hardcoded ROP chain lands execve every time. This is the default prod setup, not some weird edge case. 🚨 Not affected: edge runtime or no sharp — that path uses the wasm renderer. Patched in Next.js 16.3.6 / Satori 0.33.5. On 16.2.0–16.3.5? Update now. 🔥 PoC + setup: https://github.com/EQSTLab/CVE-2026-94545 #Nextjs #RCE #CVE #PoC #Exploit #CyberSecurity #nextog #CVE_2026_94545
Post summary
CVE-2026-94545 is a critical RCE in Next.js OG image endpoint on Node runtime with Sharp, caused by unescaped SVG text injection that leads to memory corruption and remote code execution (CVSS 9.5). A functional PoC/exploit is publicly available on GitHub, and patches are released in Next.js 16.3.6 / Satori 0.33.5.















