← All advisories

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.

01.

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.

02.

How to check

  1. Affected: next (npm) >= 16.2.0, < 16.3.6.
  2. Compare your installed version with the range above (command below).
03.

How to fix

  1. Upgrade next to 16.3.6 or later.
npm ls next
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.