CVE-2022-29214
MEDIUM 6.1CVSS 3.1URL Redirection to Untrusted Site ('Open Redirect') in next-auth
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.
- Published
- 21 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-q2mx-j4x2-2h74
- Sources
- NVDJSONOSV GHSA-q2mx-j4x2-2h74JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nextauth.js | next-authcpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* |
< 3.29.3 | 3.29.3 |
| NVD | nextauth.js | next-authcpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.3.3 | 4.3.3 |
| OSV | npm | next-auth | < 3.29.3 | 3.29.3 |
| OSV | npm | next-auth | >= 4.0.0, < 4.3.3 | 4.3.3 |
References
- https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3 · Release Notes, Third Party Advisory, WEB
- https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-29214 · ADVISORY
- https://github.com/nextauthjs/next-auth · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 May 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)