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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | next-auth | 3.29.3 | GHSA-q2mx-j4x2-2h74 |
| npm | next-auth | 4.3.3 | GHSA-q2mx-j4x2-2h74 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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