CVE-2021-43812: Open redirect vulnerability in @auth0/nextjs-auth0

@auth0/nextjs-auth0 Updated 02 Oct 2025

Summary

16/12/2021
Yes i
Moderate
6.4

CVE-2021-43812: Open redirect in @auth0/nextjs-auth0. Affects @auth0/nextjs-auth0 versions < 1.6.2. Fixed in 1.6.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @auth0/nextjs-auth0 package is an npm package that provides authentication support for Next.js applications using Auth0. It allows developers to easily integrate Auth0 authentication into their Next.js projects. This package is vulnerable to an open redirect vulnerability in versions <=1.6.1.

Vulnerability Detail

The open redirect vulnerability in @auth0/nextjs-auth0 versions <=1.6.1 occurs due to the lack of filtering of certain 'returnTo' parameter values from the login URL. This vulnerability exposes the application to potential attacks where an attacker can craft a malicious URL that redirects users to a different website, leading to phishing attacks or other malicious activities. The impact of this vulnerability can range from unauthorized access to sensitive information to complete compromise of user accounts.

How To Fix

Minimum fixed version

1.6.2

This is the first release that contains the fix.

npm install @auth0/nextjs-auth0@1.6.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, the @auth0/nextjs-auth0 package is vulnerable to an open redirect vulnerability in versions <=1.6.1. To mitigate this vulnerability, it is recommended to upgrade to version >=1.6.2. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for @auth0/nextjs-auth0 →

Share this vulnerability

FAQ

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

No, the fix provided in the patch will not affect your users.

The severity of this vulnerability is considered moderate with a CVSS score of 6.4.

Related vulnerabilities

Recent vulnerabilities recorded for @auth0/nextjs-auth0.

How To Fix

Minimum fixed version

1.6.2

This is the first release that contains the fix.

npm install @auth0/nextjs-auth0@1.6.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback