Next.js Open Redirect Vulnerability in Error Pages

Vulnerability

A vulnerability allowing open redirects has been identified in Next.js versions 10.0.5 prior to 10.2.0 and 11.0.0 prior to 11.0.1, when using 'pages/_error.js' without 'getInitialProps' or with 'next export'. This issue does not affect Vercel deployments or those with 'pages/404.js'. The vulnerability arises from improperly handled path parsing, which could be exploited to redirect users from a trusted domain to an attacker's domain, potentially leading to phishing attacks.

Impact

Exploitation of this vulnerability could allow for open redirects, where users are sent from a trusted site to an external site of the attacker's choice.

Remediation

Users can upgrade to Next.js version 11.1.0 or later 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
0.2
exploitability
7.6
remediation
7.7
relevance
0.0
threat
0.0
urgency
2.9
incentive
4.2

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