AZSecureby Azguards Technolabs

Security bulletins · Vercel (Next.js)

Next.js ImageResponse remote code execution (GHSA-vcvr-r3jv-pc5j)

Apps that generate images with next/og on the Node.js runtime could be pushed into running an attacker's code.

CriticalNode.js

Free website scan

Is your store serving malware right now?

Checks home, product, cart and checkout pages, blocklists, exposed files and spam shown only to Google. Takes about a minute.

What happened

Improper escaping in the SVG that Satori builds for ImageResponse (next/og) could lead to remote code execution when it runs on the Node.js runtime. Open Graph images built from user input, such as product names or titles, are the typical exposure. The Edge runtime is not affected.

Next.js 15.x is not affected; 15.5.26 only adds hardening.

What to do

  1. Upgrade Next.js to the latest 16.x release and redeploy.
  2. Until you can, move ImageResponse routes to the Edge runtime or stop passing user-controlled text into them.

Not sure if your site is affected?

The free scan looks at your site from outside: what it runs, exposed files, injected scripts and known malicious domains. It can't read your exact patch level. A deep scan can: it checks the installed versions and packages against this bulletin and looks for what attackers leave behind.

Patched late, or not sure when?

A deep scan checks your server with read-only access, and an Azguards engineer signs off the report.

Sources

Posted by the Azguards security team. Last reviewed .