# CVE-2021-43812: Open redirect in nextjs-auth0

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2021-12-16T18:20:12.000Z
- Modified: 2026-07-08T06:28:49.665Z
- Also known as: GHSA-2mqv-4j3r-vjvp
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- auth0 nextjs-auth0: < 1.6.2; before 1.6.2
- @auth0/nextjs-auth0 (npm): before 1.6.2

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-2mqv-4j3r-vjvp> (third-party-advisory, web)
- <https://github.com/auth0/nextjs-auth0/commit/0bbd9f8a0c93af51f607f28633b5fb18c5e48ad6> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43812> (advisory)
- <https://github.com/auth0/nextjs-auth0> (package)

## Sources

- CVE List: [CVE-2021-43812](https://www.cve.org/CVERecord?id=CVE-2021-43812), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2mqv-4j3r-vjvp](https://github.com/advisories/GHSA-2mqv-4j3r-vjvp), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43812](https://nvd.nist.gov/vuln/detail/CVE-2021-43812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43812 · Whole record: https://cve.day/CVE-2021-43812.json · Rebuilt by cve.day 2026-11-25T22:24:36.312Z
