Return to Threats

Critical Next.js ImageResponse Flaw Can Lead to Server Code Execution via Crafted SVG Input

thehackernews.com 2026-09-23 AI supply chain Critical

Executive Summary

Vercel fixed a critical Next.js ImageResponse flaw where attacker-controlled values in generated images could lead to server code execution via crafted SVG.

What Happened

A new security vulnerability in Next.js could allow attackers to run code on a server via ImageResponse, the feature that generates Open Graph and other social preview images, Vercel said. The risk applies when an app puts values an attacker controls, such as text read from the request URL, into the image. Vercel, which develops Next.js, fixed the flaw on September 22 in version

Affected Products

  • Next.js

Vulnerability / Attack Technique

Code execution via crafted SVG input

Technical Mechanism

Attacker-controlled data reaches image generation.

AI Security Category

Not AI-specific

RealGround Analysis

A web framework vulnerability.

Recommended Controls

  • Update Next.js

Related RealGround Service

AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.

Sources

thehackernews.com: https://thehackernews.com/2026/09/critical-nextjs-imageresponse-flaw-can.html

Summary and analysis written by RealGround from the source above; last updated 2026-10-18.

Talk to AI CISO