{"id":"CVE-2022-29214","summary":"URL Redirection to Untrusted Site ('Open Redirect') in next-auth","details":"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.","aliases":["GHSA-q2mx-j4x2-2h74"],"modified":"2026-04-02T07:56:31.034200Z","published":"2022-05-20T23:45:11Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-601"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29214.json"},"references":[{"type":"WEB","url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29214.json"},{"type":"ADVISORY","url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29214"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nextauthjs/next-auth","events":[{"introduced":"29b67b664785ba086008159e69c5e22969f69b48"},{"fixed":"e71118b9960a3b79543c96ee1cbe1ecbb83c98e9"}]}],"versions":["v4.0.0","v4.1.0-next.1","v4.1.0-next.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29214.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}