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.
Published: 2026-10-13
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unintended domain redirect potentially leading to phishing or credential compromise
Action: Patch Now
AI Analysis

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.

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

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 yet.

History

Sat, 17 Oct 2026 06:45:00 +0000

Type Values Removed Values Added
First Time appeared Auth0
Auth0 nextjs-auth0
Vendors & Products Auth0
Auth0 nextjs-auth0

Wed, 14 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 20:30:00 +0000

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'}


Subscriptions

Auth0 Nextjs-auth0
cve-icon MITRE

Status: PUBLISHED

Assigner: Okta

Published:

Updated: 2026-10-14T18:41:32.403Z

Reserved: 2026-10-07T20:59:17.368Z

Link: CVE-2026-107369

cve-icon Vulnrichment

Updated: 2026-10-14T18:41:28.190Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-13T21:17:32.093

Modified: 2026-10-15T20:38:04.303

Link: CVE-2026-107369

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T06:30:05Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')