SecurityOnlineDo Son
Public PoC Exploits Critical Next.js Flaw for Remote Code Execution
Part of the Next.js story · since 23 Sep
- Wed 23 Sep, 07:36 UTC. The Hacker News, first report. Next.js ImageResponse Flaw Lets Attackers Execute Server Code via SVGs.
- Wed 23 Sep, 08:11 UTC. SecurityOnline, its first report on the story. Vercel Fixes Critical Next.js Flaw Enabling Unauthenticated RCE.
- Mon 28 Sep, 15:00 UTC. Cloudflare, its first report on the story. Cloudflare Launches Vinext to Make Next.js Apps Run Anywhere.
- Thu 1 Oct, 10:28 UTC. SecurityOnline. Public PoC Exploits Critical Next.js Flaw for Remote Code Execution. This article, 4th of 5.
- Thu 15 Oct, 07:01 UTC. SecurityOnline. Vercel patches critical Next.js flaws that let attackers run code remotely.
A working PoC exploit has been publicly released for CVE-2026-94545, a critical remote code execution flaw in the Next.js next/og image API. The disclosure notes that one unauthenticated request can execute commands on the affected server. The advisory lists Next.js 16.2.0–16.3.5 on Node.js runtimes with the sharp package, and Satori 0.0.27 up to but not including 0.33.5, as affected. Edge-runtime routes or installations without sharp use a sandboxed renderer and are not exposed to the RCE path.
While initial threat assessments suggested high severity (CyCognito rates CVSS v4 at 9.5 and EQSTLab published a full write‑up with an exploit script, including a root shell in a test container), the published material also notes that there have been no confirmed cases of exploitation in the wild to date.
How the attack works, as described in the sources, hinges on the next/og module’s Open Graph image rendering. Satori converts JSX to SVG and writes user-provided text into the SVG without escaping. An attacker can terminate the SVG element and inject their own markup. On Node.js with libvips/libxml2 present, crafted XML entities can corrupt memory in the rendering pipeline, enabling an attacker to achieve code execution without an address leak.
Practically, attackers could run a reverse shell to exfiltrate output. The recommended mitigations are to upgrade to Next.js 16.3.6 and Satori 0.33.5, or to move next/og routes to the Edge runtime, or remove sharp, with additional guidance to keep raw user input out of ImageResponse and to limit outbound traffic.
How the story developed
5 articles from 3 outlets since 23 Sep. Quiet since 15 Oct. This was the 4th report, 8 days after the first.
- Wed 23 Sep, 07:36 UTC. The Hacker News, first report. Next.js ImageResponse Flaw Lets Attackers Execute Server Code via SVGs.
- Wed 23 Sep, 08:11 UTC. SecurityOnline, its first report on the story. Vercel Fixes Critical Next.js Flaw Enabling Unauthenticated RCE.
- Mon 28 Sep, 15:00 UTC. Cloudflare, its first report on the story. Cloudflare Launches Vinext to Make Next.js Apps Run Anywhere.
- Thu 1 Oct, 10:28 UTC. SecurityOnline. Public PoC Exploits Critical Next.js Flaw for Remote Code Execution. This article, 4th of 5.
- Thu 15 Oct, 07:01 UTC. SecurityOnline. Vercel patches critical Next.js flaws that let attackers run code remotely.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
- Quiet time, folded
Show all 5 articles as a listHide the list
- Wed 23 SepDay 02
- Next.js ImageResponse Flaw Lets Attackers Execute Server Code via SVGs07:36 · The Hacker News · First report
- Vercel Fixes Critical Next.js Flaw Enabling Unauthenticated RCE08:11 · SecurityOnline
Quiet for 5 days
Mon 28 SepDay 51- Cloudflare Launches Vinext to Make Next.js Apps Run Anywhere15:00 · Cloudflare · Picked up again
Quiet for 3 days
Thu 1 OctDay 81- Public PoC Exploits Critical Next.js Flaw for Remote Code Execution10:28 · SecurityOnline · Picked up again · This article, 4th of 5
Quiet for 2 weeks
Thu 15 OctDay 221- Vercel patches critical Next.js flaws that let attackers run code remotely07:01 · SecurityOnline · Picked up again