Live threats

All CVEs / Nextauth.js

CVE-2022-24858Nextauth.js Next-auth

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.8%
probability of exploitation in 30 days · percentile 54
Auth required
No
Published
Apr 19, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-290, 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

next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also impacted. Upgrading to 3.29.2 or 4.3.2 will patch this vulnerability. If you are not able to upgrade for any reason, you can add a configuration to your callbacks option. If you already have a `redirect` callback, make sure that you match the incoming `url` origin against the `baseUrl`.

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.2 3.29.2 npm install next-auth@3.29.2
npm next-auth ≥ 4.0.0 < 4.3.2 4.3.2 npm install next-auth@4.3.2

Per OSV / GitHub Advisories (GHSA-f9wg-5f46-cjmw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nextauth.jsnext-auth≥ 3.0.0 < 3.29.2
nextauth.jsnext-auth≥ 4.0.0 < 4.3.2

Official sources

References

Links published by the sources. Open them with care.