Open Redirect in Next.js
Affected releases · next
- 11.x11.0.0 – 11.0.1Fixed in 11.1.0
- 10.x and older0.9.9 – 10.2.3No fix, no longer updated
On 11.x, the newest line:
npm install next@11.1.0Not affected
16.0.0 – 16.4.2
45 releases, latest
Affected
11.0.0 – 11.0.1
2 releases
Fixed
11.1.0 – 11.1.4
5 releases
Affected
10.0.0 – 10.2.3
18 releases
Affected
9.0.0 – 9.5.5
38 releases
Affected
8.0.0 – 8.1.0
6 releases
Affected
7.0.0 – 7.0.3
4 releases
Affected
6.0.0 – 6.1.2
7 releases
Affected
5.0.0 – 5.1.0
2 releases
Affected
4.0.0 – 4.2.3
15 releases
Affected
3.0.1 – 3.2.3
11 releases
Affected
2.0.0 – 2.4.9
17 releases
Affected
1.0.0 – 1.2.3
10 releases
Not affected
0.1.0 – 0.4.1
23 releases
Affected
0.9.9 – 0.9.11
3 releases
Is your project affected?
Paste your package.json, or type the range you declare for next. It is read in your browser and sent nowhere.
What happens
Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/_error.js was statically generated, allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although it can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain.
Impact
Affected: Users of Next.js between
10.0.5and10.2.0Affected: Users of Next.js between
11.0.0and11.0.1usingpages/_error.jswithoutgetInitialPropsAffected: Users of Next.js between
11.0.0and11.0.1usingpages/_error.jsandnext exportNot affected: Deployments on Vercel (vercel.com) are not affected
Not affected: Deployments with
pages/404.jsNote that versions prior to 0.9.9 package
nextnpm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions.
We recommend upgrading to the latest version of Next.js to improve the overall security of your application.
Patches