---
id: CVE-2026-107369
title: >-
  The auth0/nextjs-auth0 SDK validates that the returnTo parameter is a
  same-origin URL
summary: >-
  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 …
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-601
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T21:17:32.093'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107369'
references:
  - url: >-
      https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-5vvp-h2v6-59j6
    label: psirt@okta.com
  - url: >-
      https://trust.okta.com/security-advisories/improper-validation-of-post-login-redirect-url-in-nextjs-auth0-cve-2026-107369
    label: psirt@okta.com
tags:
  - nvd
ingestedAt: '2026-10-13T21:58:14.177Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
