CVE-2022-29214 json
URL Redirection to Untrusted Site ('Open Redirect') in next-auth
published 2022-05-20 4 y ago modified 2026-06-17 4 mo ago also GHSA-q2mx-j4x2-2h74 , EUVD-2022-4862
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm next-auth 3.29.3, 4.3.3
- nextauth.js next-auth 3.29.3, 4.3.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.67% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | next-auth | <3.29.3 >=4.0.0, <4.3.3 |
3.29.3 4.3.3 |
Affected products
- nextauthjs next-auth
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74
web, third-party-advisory
-
github.com
/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-29214
advisory
-
github.com
/nextauthjs/next-auth
package
Sources
- CVE List CVE-2022-29214
- GitHub Advisory GHSA-q2mx-j4x2-2h74
- NVD CVE-2022-29214
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.