CVE-2021-43812 Open redirect in nextjs-auth0
An open redirect vulnerability in the Auth0 Next.js SDK allows attackers to redirect users to malicious sites via the returnTo parameter.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-43812?
CVE-2021-43812 is a medium-severity vulnerability in nextjs-auth0, published on 16 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions before 1.6.2 do not filter out certain returnTo parameter values from the login url, which expose the application to an open redirect vulnerability. Users are advised to upgrade as soon as possible. There are no known workarounds for this issue.
Weakness: CWE-601
Which versions are affected by CVE-2021-43812?
2 open source packages ship an affected version, including @auth0/nextjs-auth0. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@auth0/nextjs-auth0 npm | All versions | 1.6.2 |
@auth0/nextjs-auth0 npm | All versions | 1.6.2 |
Products include Auth0 Nextjs-Auth0.
How do I fix CVE-2021-43812?
Upgrade @auth0/nextjs-auth0 to 1.6.2 or later.
Is CVE-2021-43812 being exploited?
There is no known exploitation of CVE-2021-43812 in the wild and no public exploit code.
Other vulnerabilities in nextjs-auth0
Sources
Also known as GHSA-2mqv-4j3r-vjvp.