Live threats

All CVEs / Nextauth.js

CVE-2022-29214Nextauth.js Next-auth

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.7%
probability of exploitation in 30 days · percentile 51
Auth required
No
Published
May 21, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Next-auth.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm next-auth < 3.29.3 3.29.3 npm install next-auth@3.29.3
npm next-auth ≥ 4.0.0 < 4.3.3 4.3.3 npm install next-auth@4.3.3

Per OSV / GitHub Advisories (GHSA-q2mx-j4x2-2h74). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nextauth.jsnext-auth< 3.29.3
nextauth.jsnext-auth≥ 4.0.0 < 4.3.3

Official sources

References

Links published by the sources. Open them with care.