Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next-auth
  4. ›
  5. CVE-2022-29214

CVE-2022-29214: URL Redirection to Untrusted Site ('Open Redirect')

May 21, 2022 (updated June 7, 2022)

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.

References

  • github.com/advisories/GHSA-q2mx-j4x2-2h74
  • github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3
  • github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74
  • nvd.nist.gov/vuln/detail/CVE-2022-29214

Code Behaviors & Features

Detect and mitigate CVE-2022-29214 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.29.3, all versions starting from 4.0.0 before 4.3.3

Fixed versions

  • 3.29.3
  • 4.3.3

Solution

Upgrade to versions 3.29.3, 4.3.3 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/next-auth/CVE-2022-29214.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:48 +0000.