Next.js Cross-Site Scripting Vulnerability in Image Optimization API

Vulnerability

A cross-site scripting vulnerability has been identified in Next.js, a React framework, affecting versions 10.0.0 prior to 11.1.0. The issue arises when the 'next.config.js' file includes an 'images.domains' array that allows user-provided SVGs. Instances deployed on Vercel or with a non-default 'images.loader' are not vulnerable.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.

Remediation

Users can upgrade to Next.js version 11.1.1 to address this vulnerability.

Added: Jun 22, 2026, 11:15 AM
Updated: Jun 22, 2026, 11:15 AM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
1.7
exploitability
6.4
remediation
7.7
relevance
0.0
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.