Skip to content
OpenAdvisories
Medium · 6.1 CVE-2022-29214 EUVD-2022-4862GHSA-q2mx-j4x2-2h74

URL Redirection to Untrusted Site ('Open Redirect') in next-auth

Published May 20, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
nextauthjs next-auth < 3.29.3, >= 4.0.0, < 4.3.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm next-auth < 3.29.3 3.29.3 GHSA-q2mx-j4x2-2h74
npm next-auth >= 4.0.0, < 4.3.3 4.3.3 GHSA-q2mx-j4x2-2h74

References