Vulnerability · Published May 20, 2022 · Assigned by GitHub_M

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

Medium 6.1

In plain English

A medium-severity open redirect in next-auth from nextauthjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.7%top 47.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmnext-auth3.29.3GHSA-q2mx-j4x2-2h74
npmnext-auth4.3.3GHSA-q2mx-j4x2-2h74

Affected products (as reported)

VendorProductVersions
nextauthjs next-auth < 3.29.3>= 4.0.0, < 4.3.3

Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References