{"id":"CVE-2022-29214","published":"2022-05-20T23:45:11Z","modified":"2025-04-23T18:23:37Z","title":"URL Redirection to Untrusted Site ('Open Redirect') in next-auth","vendor":"nextauthjs","product":"next-auth","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0067,"percentile":0.52935,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":10.59},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"nextauthjs","affectedVersions":[{"vendor":"nextauthjs","product":"next-auth","versions":["< 3.29.3",">= 4.0.0, < 4.3.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:06:57.338140Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next-auth","vulnerableRanges":["<3.29.3",">=4.0.0, <4.3.3"],"patched":["3.29.3","4.3.3"],"from":["GHSA-q2mx-j4x2-2h74"],"provenance":"source"}],"summary":{"text":"The open redirect flaw lives in next-auth, an authentication library for Next.js applications, and affects developers implementing an OAuth 1 provider with it. An attacker who can get a victim to interact with a crafted link (user interaction is required, with no authentication and network access sufficient) can redirect the user to an untrusted site.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:02Z"},"euvd":{"id":"EUVD-2022-4862","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21310","published":"2021-02-11","fixed":"3.3.0","kev":false},{"cve":"CVE-2022-24858","published":"2022-04-19","fixed":"4.3.2","kev":false,"link":{"from":"CVE-2022-24858","to":"CVE-2022-29214","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next-auth","fromFixed":"3.29.2","toFixed":"3.29.3","daysApart":31},{"kind":"version-step","provenance":"source","package":"npm:next-auth","fromFixed":"4.3.2","toFixed":"4.3.3","daysApart":31}]}},{"cve":"CVE-2022-29214","published":"2022-05-20","fixed":"4.3.3","kev":false},{"cve":"CVE-2022-31093","published":"2022-06-27","fixed":"4.5.0","kev":false,"link":{"from":"CVE-2022-29214","to":"CVE-2022-31093","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next-auth","fromFixed":"3.29.3","toFixed":"3.29.5","daysApart":38},{"kind":"version-step","provenance":"source","package":"npm:next-auth","fromFixed":"4.3.3","toFixed":"4.5.0","daysApart":38}]}},{"cve":"CVE-2022-31127","published":"2022-07-06","fixed":"4.9.0","kev":false},{"cve":"CVE-2022-31186","published":"2022-08-01","fixed":"4.10.2","kev":false}],"package":"npm:next-auth"}}