# CVE-2021-21310: Token verification bug in next-auth

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-11T21:36:24.000Z
- Modified: 2026-07-08T06:00:26.320Z
- Also known as: GHSA-pg53-56cg-4m8q
- Weaknesses: CWE-290
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nextauthjs next-auth: < 3.3.0
- next-auth (npm): before 3.3.0
- nextauth.js next-auth: before 3.3.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: rating Low
- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-pg53-56cg-4m8q> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/package/next-auth> (product, third-party-advisory, web)
- <https://github.com/nextauthjs/next-auth/releases/tag/v3.3.0> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21310> (advisory)

## Sources

- CVE List: [CVE-2021-21310](https://www.cve.org/CVERecord?id=CVE-2021-21310), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pg53-56cg-4m8q](https://github.com/advisories/GHSA-pg53-56cg-4m8q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21310](https://nvd.nist.gov/vuln/detail/CVE-2021-21310), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21310 · Whole record: https://cve.day/CVE-2021-21310.json · Rebuilt by cve.day 2026-11-25T22:57:59.927Z
