Node.js ImageResponse Implementation Vulnerability Enables Remote Code Execution
Next.js 16.2.0–16.3.5 Node.js ImageResponse can allow RCE via unsanitized SVG input; fixed in 16.3.6.
GitHub advisory GHSA-vcvr-r3jv-pc5j says Next.js 16.2.0 through 16.3.5 can allow remote code execution when the Node.js next/og ImageResponse implementation inserts attacker-controlled data into SVG content, attributes, or styles. The Edge implementation is not affected. The issue comes from Satori 0.0.27 through 0.33.4, tracked as CVE-2026-94545 and patched in Satori 0.33.5; Next.js 16.3.6 includes the fix. GitHub rated it critical under CVSS v4 for unauthenticated network exploitation, and no in-the-wild exploitation is reported.
- Affects Next.js 16.2.0 through 16.3.5 Node.js ImageResponse only
- Untrusted SVG content, attributes, or styles can lead to RCE
- Upstream Satori flaw is CVE-2026-94545, fixed in 0.33.5
- Next.js 16.3.6 patches the vulnerable rendering path
- Edge ImageResponse implementation is not affected
- CVEs
- CVE-2026-94545
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-94545 | Improper Output Escaping in Satori SVG Generator Exposes Next.js OG Image Pipelines | 5.3 | 1% | PoC ×5 |
From the original article
3 min read at cybersecuritynews.com
A critical vulnerability in Next. js could allow remote code execution in applications that use the Node. js implementation of ImageResponse from the next/og package.
By Guru Baran · cybersecuritynews.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.