{"id":"CVE-2022-29214","state":"PUBLISHED","title":"URL Redirection to Untrusted Site ('Open Redirect') in next-auth","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.","publishedAt":"2022-05-20T23:45:11.000Z","updatedAt":"2025-04-23T18:23:37.970Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["nextauthjs next-auth"],"affected":[{"vendor":"nextauthjs","product":"next-auth","versions":[{"version":"< 3.29.3","status":"affected"},{"version":">= 4.0.0, < 4.3.3","status":"affected"}]}],"references":["https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74","https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3"],"weaknesses":["CWE-601"],"ingestedAt":"2026-10-29T19:49:57.813Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/29xxx/CVE-2022-29214.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-29214","state":"PUBLISHED","datePublished":"2022-05-20T23:45:11.000Z","dateUpdated":"2025-04-23T18:23:37.970Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-04-13T00:00:00.000Z"},"containers":{"cna":{"title":"URL Redirection to Untrusted Site ('Open Redirect') in next-auth","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nextauthjs","product":"next-auth","versions":[{"version":"< 3.29.3","status":"affected"},{"version":">= 4.0.0, < 4.3.3","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-601","description":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-05-20T23:45:11.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-q2mx-j4x2-2h74","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-29214","STATE":"PUBLIC","TITLE":"URL Redirection to Untrusted Site ('Open Redirect') in next-auth"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"next-auth","version":{"version_data":[{"version_value":"< 3.29.3"},{"version_value":">= 4.0.0, < 4.3.3"}]}}]},"vendor_name":"nextauthjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')"}]}]},"references":{"reference_data":[{"name":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74","refsource":"CONFIRM","url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74"},{"name":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3","refsource":"MISC","url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3"}]},"source":{"advisory":"GHSA-q2mx-j4x2-2h74","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T06:17:54.257Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-23T14:06:57.338140Z","id":"CVE-2022-29214","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-23T18:23:37.970Z"}}]}}}