Download Privacy Needle App

Type to search

Cybersecurity

Next.js Vulnerability Risks Server Code Execution via ImageResponse

Share

A critical vulnerability in the Next.js ImageResponse feature could allow attackers to execute code on a server via specially crafted SVG input, Vercel has warned.

The flaw, tracked as CVE-2026-94545, has been assigned a CVSS severity score of 9.5. The risk specifically affects applications that use the feature to generate social media preview images, such as Open Graph images, and pass attacker-controlled values into the SVG content.

Technical Breakdown of the Flaw

The vulnerability originates in Satori, a library bundled within Next.js that converts layout designs into SVG code before they are rendered as PNG images. According to Vercel, certain values can reach the SVG output without being properly escaped.

If an application takes data controlled by a user—such as text extracted from a request URL—and places it into an SVG element, attribute, or style, an attacker can inject malicious SVG code. This injected code can then interact with other libraries used by Next.js to achieve remote code execution (RCE) on the host server.

Affected Versions and Scope

The vulnerability impacts Next.js versions 16.2.0 through 16.3.5 when the application is running on the Node.js runtime. Developers using the Edge runtime version of ImageResponse are not affected, and Next.js 15 is also considered secure from this specific flaw.

While the bug is rooted in Satori, the impact is magnified within the Next.js environment, potentially allowing an attacker to compromise the entire server running the application.

Remediation and Mitigation

Vercel has released a patch to address the issue. Developers are advised to upgrade to Next.js version 16.3.6 immediately. For those currently using the 16.2 version line, an upgrade to 16.3.6 is the recommended path to ensure security.

Additionally, Next.js 15.5.26 includes extra security hardening for the next/og module. If an immediate upgrade is not possible, the current mitigation is to ensure that no attacker-controlled or unvalidated values are passed into SVG content, attributes, or styles during the image generation process.

Watch Our Latest Video
Stay ahead with expert insights on privacy, cybersecurity, artificial intelligence, data protection and compliance.
No Leak, No Wahala
Published: August 16, 2026
Daily Privacy News
Cybersecurity Updates
Data Protection Tips
GDPR & NDPA Explained
Tags:
Ikeh James Certified Data Protection Officer (CDPO) | NDPC-Accredited

Ikeh James Ifeanyichukwu is a Certified Data Protection Officer (CDPO) accredited by the Institute of Information Management (IIM) in collaboration with the Nigeria Data Protection Commission (NDPC). With years of experience supporting organizations in data protection compliance, privacy risk management, and NDPA implementation, he is committed to advancing responsible data governance and building digital trust in Africa and beyond. In addition to his privacy and compliance expertise, James is a Certified IT Expert, Data Analyst, and Web Developer, with proven skills in programming, digital marketing, and cybersecurity awareness. He has a background in Statistics (Yabatech) and has earned multiple certifications in Python, PHP, SEO, Digital Marketing, and Information Security from recognized local and international institutions. James has been recognized for his contributions to technology and data protection, including the Best Employee Award at DKIPPI (2021) and the Outstanding Student Award at GIZ/LSETF Skills & Mentorship Training (2019). At Privacy Needle, he leverages his diverse expertise to break down complex data privacy and cybersecurity issues into clear, actionable insights for businesses, professionals, and individuals navigating today’s digital world.

  • 1

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Rating

This site uses Akismet to reduce spam. Learn how your comment data is processed.