CVE-2022-29214 Details
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.
A open redirect vulnerability has been identified in NextAuth.js versions prior to 3.29.3 and 4.3.3. This issue arises when developers implement an OAuth 1 provider, such as Twitter, which is the only built-in provider using OAuth 1. The vulnerability allows for URL redirection to untrusted sites.
Users can upgrade to NextAuth.js version 3.29.3 or 4.3.3, both of which contain the patch for this vulnerability. For those unable to upgrade, a workaround involves adding specific configuration to the 'callbacks' option to manage redirect URLs.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3 | CVE | Release NotesThird Party Advisory |
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74 | CVE | Third Party Advisory |
| https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nextauth.js next-auth | < 3.29.3 >= 4.0.0, < 4.3.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jun 7, 2022 | Initial Analysis | [email protected] |