Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107369 Overview
CVE-2026-107369 is an open redirect vulnerability [CWE-601] in the auth0/nextjs-auth0 SDK. The SDK validates that the returnTo parameter is a same-origin URL before storing it. In a later step, the SDK reconstructs the URL for the post-authentication redirect. The reconstruction logic can produce a value that browsers interpret as an absolute or scheme-relative path. This mismatch allows an attacker to redirect authenticated users to an unintended external domain.
Critical Impact
Attackers can craft login links that pass same-origin validation yet redirect users to attacker-controlled domains after authentication, enabling phishing and credential theft campaigns against legitimate Auth0-integrated applications.
Affected Products
- auth0/nextjs-auth0 SDK
- Next.js applications integrating Auth0 for authentication
- Okta-managed deployments using the affected SDK versions
Discovery Timeline
- 2026-10-13 - CVE CVE-2026-107369 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-107369
Vulnerability Analysis
The vulnerability stems from a split between validation and reconstruction of the returnTo parameter. The SDK first confirms that the submitted returnTo value matches the application's origin. The validated value is then persisted through the authentication flow. After the user authenticates, the SDK rebuilds the redirect target from the stored value. During reconstruction, the resulting string can be interpreted by the browser as a scheme-relative URL (for example, a value beginning with //attacker.example) or as an absolute URL. The browser follows that interpretation and sends the authenticated user to a domain outside the application's origin.
This class of defect falls under Open Redirect [CWE-601]. It abuses the trust users place in the legitimate login domain to deliver victims to attacker-controlled landing pages. The user interaction requirement reflects that a victim must click a malicious link, and the scope change indicates impact outside the vulnerable component's security boundary.
Root Cause
The root cause is inconsistent URL parsing between the validation step and the reconstruction step. Validation treats the input as a path relative to the application origin. Reconstruction concatenates or formats the stored value in a way that the browser's URL parser resolves to an absolute location. The two parsers do not agree, so a value that appears same-origin at validation time resolves to a different origin at redirect time.
Attack Vector
An attacker crafts a login URL that includes a specially formatted returnTo query parameter. The parameter passes the SDK's same-origin check. The attacker distributes the link through email, chat, or malicious advertising. The victim clicks the link and authenticates on the legitimate domain. The SDK then redirects the browser to the attacker's domain, which can host a credential-harvesting page or a token-stealing script. Refer to the GitHub Security Advisory GHSA-5vvp-h2v6-59j6 for exact payload constructions.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-107369
Indicators of Compromise
- Authentication callback requests containing returnTo values with leading //, backslashes, or embedded schemes such as https:.
- HTTP 302 responses from Auth0 callback endpoints pointing to domains outside the application origin.
- Spikes in outbound referrers from the application's login flow to previously unseen external hosts.
Detection Strategies
- Log and inspect every returnTo parameter observed on login initiation and callback endpoints, flagging values that do not resolve to the application's own host.
- Compare the host portion of the final Location header against an allow-list of expected post-login destinations.
- Review web application firewall (WAF) rules to alert on returnTo values containing URL-encoded path separators or scheme-relative prefixes.
Monitoring Recommendations
- Centralize access logs from the Next.js application and the Auth0 tenant to correlate login attempts with redirect targets.
- Alert on authenticated sessions that terminate with an external redirect followed by rapid credential re-entry on another domain.
- Monitor user-reported phishing incidents that reference the legitimate application domain in the login step.
How to Mitigate CVE-2026-107369
Immediate Actions Required
- Upgrade auth0/nextjs-auth0 to the fixed version identified in the GitHub Security Advisory GHSA-5vvp-h2v6-59j6.
- Review all application code paths that pass user-supplied values into the returnTo parameter and enforce an allow-list of acceptable paths.
- Rotate any session tokens or credentials that may have been exposed during the window of exploitation.
Patch Information
Auth0 and Okta have published fixed releases of the auth0/nextjs-auth0 SDK. Refer to the Okta Security Advisory for CVE-2026-107369 for the specific fixed version numbers and upgrade instructions.
Workarounds
- Strip or reject returnTo values that begin with /, \, or any character other than a single ASCII letter representing an allowed route prefix.
- Enforce a server-side allow-list of permitted post-login paths and ignore any client-supplied value that is not on the list.
- Add a reverse-proxy or WAF rule that rewrites or blocks requests to the Auth0 callback whose returnTo parameter contains scheme-relative patterns such as // or /\.
# Configuration example
# Example WAF/nginx rule to block scheme-relative returnTo values
if ($arg_returnTo ~* "^(/{2,}|\\|https?:|//)") {
return 400;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

