CVE-2026-107369

Improper Validation of Post-Login Redirect URL in nextjs-auth0

Published Oct 13, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The nextjs-auth0 SDK performs a same‑origin check on the returnTo query parameter but later rebuilds the URL for post‑authentication redirection. An attacker can supply a crafted returnTo value that, after reconstruction, resolves to an absolute or scheme‑relative URL interpreted by the browser as pointing to an external domain. This flaw enables an attacker to redirect a legitimate user away from the intended application after login, creating a phishing or credential‑stealing surface. The weakness is a redirection vulnerability (CWE‑601) and undermines the integrity of the authentication flow.

Affected Systems

Auth0’s nextjs-auth0 SDK is affected, specifically any version earlier than 4.32.0. Updating to 4.32.0 or later eliminates the vulnerability.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity. The EPSS score of less than 1% suggests a low but non‑zero likelihood of exploitation in the wild, and the vulnerability is currently not listed in the CISA KEV catalog. Exploitation requires an attacker to craft a login URL containing a malicious returnTo parameter; if users follow such a link, the SDK will reconstruct it and redirect them to an unintended domain. The attack surface is public and does not require elevated privileges, making the vulnerability feasible with minimal effort.

Remediation

Vendor Solution

Upgrade auth0/nextjs-auth0 to version 4.32.0 or greater.


OpenCVE Recommended Actions

  • Upgrade auth0/nextjs-auth0 to version 4.32.0 or later
  • Limit post‑login redirects to a whitelist of internal domains or otherwise validate the reconstructed URL server‑side
  • Remove or neutralize any custom returnTo parameters in authentication flows that are not required

Generated by OpenCVE AI on October 16, 2026 at 04:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Auth0
Auth0 nextjs-auth0
Vendors & Products Auth0
Auth0 nextjs-auth0
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Validation of Post-Login Redirect URL in nextjs-auth0
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
Okta
Published
Updated
Oct 14, 2026, 6:41 PM
Reserved
Oct 7, 2026, 8:59 PM
Status
Awaiting Analysis
Published
Oct 13, 2026, 9:17 PM
Modified
Oct 15, 2026, 8:38 PM