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.
Remediation
References
https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.3
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-q2mx-j4x2-2h74
Related Vulnerabilities
CVE-2022-36914 Vulnerability in maven package org.jenkins-ci.plugins:files-found-trigger
CVE-2020-6462 Vulnerability in npm package electron
CVE-2019-12086 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2022-36901 Vulnerability in maven package org.jenkins-ci.plugins:http_request