cve.bz

CVE-2021-21310

5.9 mediumEPSS 1.7%

Medium (5.9) in nextauth.js next-auth. EPSS 1.7% chance of exploitation in the next 30 days. Fixed in next-auth 3.3.0.

NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. In next-auth before version 3.3.0 there is a token verification vulnerability. Implementations using the Prisma database adapter in conjunction with the Email provider are impacted. Implementations using the Email provider with the default database adapter are not impacted. Implementations using the Prisma database adapter but not using the Email provider are not impacted. The Prisma database adapter was checking the verification token, but was not verifying the email address associated with that token. This made it possible to use a valid token to sign in as another user when using the Prima adapter in conjunction with the Email provider. This issue is specific to the community supported Prisma adapter. This issue is fixed in version 3.3.0.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.7% chance of exploitation in the next 30 days; higher than 76% of CVEs (scores of 2026-11-01)
CWE
CWE-290
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pg53-56cg-4m8qnpmnext-auth<3.3.03.3.0

References

Check your stackJSON