Improper Validation of Post-Login Redirect URL in nextjs-auth0
Auth0 nextjs-auth0
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Auth0 nextjs-auth0 |
| No fix yet |
Original description
The auth0/nextjs-auth0 SDK validates that the returnTo parameter is a same-origin URL. The SDK then stores this value and, in a later step, reconstructs it for the post-authentication redirect. The reconstruction logic can produce a URL that browsers interpret as an absolute or scheme-relative path, leading to a redirect to an unintended domain.
From the CVE record · Okta