Intel

AIKIDO-2025-10091

@auth0/nextjs-auth0 is vulnerable to URL Redirection to Untrusted Site ('Open Redirect')

URL Redirection to Untrusted Site ('Open Redirect') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 12, 2025

72

High Risk

This Affects:

js@auth0/nextjs-auth0
4.0.0 - 4.0.0
Fixed in 4.0.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to an open redirect due to improper sanitization of the returnTo parameter in the handleLogin function. This allows an attacker to craft malicious URLs that redirect users to arbitrary domains. The issue is a regression introduced in version 4.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges

Background info

@auth0/nextjs-auth0 is vulnerable to URL Redirection to Untrusted Site ('Open Redirect') in versions 4.0.0 - 4.0.0.

How to fix this

Upgrade the @auth0/nextjs-auth0 library to the patch version.