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

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

Why It Matters

The report describes a critical Next.js ImageResponse vulnerability that can enable server-side code execution when attacker-controlled values are rendered into SVG content, attributes, or styles. The issue affects the Node.js implementation in certain Next.js versions and was patched in Next.js 16.3.6; related maintenance updates include 15.5.26. RealGround analysis: this is primarily a software supply-chain and application-security issue, with indirect relevance to AI systems that use affected Next.js components; organizations should inventory affected dependencies, assess exposure to untrusted ImageResponse inputs, and apply the vendor patches.

Healthcare Fintech SaaS SMB AI startups

RealGround Analysis

This signal maps to AI supply chain. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.

Recommended Actions

  • Restrict AI agent tool permissions and production write paths.
  • Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
  • Add human approval workflows for high-impact or state-changing actions.
  • Run prompt injection and indirect prompt injection tests against affected workflows.
  • Document the owner, control gap, and remediation deadline for this risk class.

Source

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

Talk to AI CISO