GHSA-vcvr-r3jv-pc5jcriticalCode execution2026-09-30
Next.js: Remote Code Execution in next/og ImageResponse
The Node.js ImageResponse implementation from next/og is affected by an upstream vulnerability. This can lead to remote code execution.
What it is
The Node.js ImageResponse implementation from next/og is affected by an upstream vulnerability. This can lead to remote code execution.
Affected applications pass attacker-controlled values into SVG content, attributes, or styles during image generation:
Applications using the Edge ImageResponse implementation, or applications that do not pass attacker-controlled values into SVG content, attributes, or styles, are not affected.
How to check
- Affected: next (npm) >= 16.2.0, < 16.3.6.
- Compare your installed version with the range above (command below).
How to fix
- Upgrade next to 16.3.6 or later.
npm ls nextSources
More advisories for this tool
- criticalCVE-2026-75604: Next.js: Unauthenticated Remote Code Execution on windows-hosted servers
- criticalNext.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used
- criticalCVE-2025-29927: Next.js middleware authorization bypass
- highSecrets leaked via NEXT_PUBLIC_ (or VITE_) environment variables