Medium

Open redirect in @auth0/nextjs-auth0

  • Disclosed: 16.12.2021
  • Updated: 11.10.2026 10:22

Overview

Versions <=1.6.1 do not filter out certain returnTo parameter values from the login url, which expose the application to an open redirect vulnerability.

Am I affected?

You are affected by this vulnerability if you are using @auth0/nextjs-auth0 version <=1.6.1.

How to fix that?

Upgrade to version >=1.6.2

Will this update impact my users?

The fix provided in the patch will not affect your users.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @auth0/nextjs-auth0 < 1.6.2 1.6.2

References

CVSS score 6.4/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-601
Platform
npm
Package
@auth0/nextjs-auth0
Disclosed
16.12.2021
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-2mqv-4j3r-vjvp - CC BY 4.0

Vulnerability history: @auth0/nextjs-auth0

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
7
First → latest
06.2021 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 4
  • Low 1

Disclosures per year

  1. 2021: 2
  2. 2022: 0
  3. 2023: 0
  4. 2024: 0
  5. 2025: 4
  6. 2026: 1
  1. Medium · 5.4 CVE-2026-40155 >= 4.12.0, < 4.18.0 4.18.0
  2. Low · 3.7 CVE-2025-67716 >= 4.9.0, < 4.13.0 4.13.0
  3. Medium · 5.4 CVE-2025-67490 >= 4.11.0, < 4.11.2, >= 4.12.0, < 4.12.1 4.11.2, 4.12.1
  4. High CVE-2025-48947 >= 4.0.1, < 4.6.1 4.6.1
  5. Medium CVE-2025-46344 >= 4.0.1, < 4.5.1 4.5.1
  6. Open redirect in @auth0/nextjs-auth0 this entry
    Medium · 6.4 CVE-2021-43812 < 1.6.2 1.6.2
  7. High · 8.0 CVE-2021-32702 < 1.4.2 1.4.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.