Live threats

All CVEs / Nextauth.js

CVE-2022-39263Nextauth.js Next-auth

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
0.8%
probability of exploitation in 30 days · percentile 53
Auth required
No
Published
Sep 28, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

`@next-auth/upstash-redis-adapter` is the Upstash Redis adapter for NextAuth.js, which provides authentication for Next.js. Applications that use `next-auth` Email Provider and `@next-auth/upstash-redis-adapter` before v3.0.2 are affected by this vulnerability. The Upstash Redis adapter implementation did not check for both the identifier (email) and the token, but only checking for the identifier when verifying the token in the email callback flow. An attacker who knows about the victim's email could easily sign in as the victim, given the attacker also knows about the verification token's expired duration. The vulnerability is patched in v3.0.2. A workaround is available. Using Advanced Initialization, developers can check the requests and compare the query's token and identifier before proceeding.

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/upstash-redis-adapter < 3.0.2 3.0.2 npm install @next-auth/upstash-redis-adapter@3.0.2

Per OSV / GitHub Advisories (GHSA-4rxr-27mm-mxq9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nextauth.jsnext-auth< 3.0.2

Official sources

References

Links published by the sources. Open them with care.