Moderate severityNVD Advisory· Published May 20, 2022· Updated Apr 23, 2025
URL Redirection to Untrusted Site ('Open Redirect') in next-auth
CVE-2022-29214
Description
NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Prior to versions 3.29.3 and 4.3.3, an open redirect vulnerability is present when the developer is implementing an OAuth 1 provider. Versions 3.29.3 and 4.3.3 contain a patch for this issue. The maintainers recommend adding a certain configuration to one's callbacks option as a workaround for those unable to upgrade.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
next-authnpm | < 3.29.3 | 3.29.3 |
next-authnpm | >= 4.0.0, < 4.3.3 | 4.3.3 |
Affected products
1- Range: < 3.29.3
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-q2mx-j4x2-2h74ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-29214ghsaADVISORY
- github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3ghsax_refsource_MISCWEB
- github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.