CVE-2021-21310

Source
https://cve.org/CVERecord?id=CVE-2021-21310
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21310.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-21310
Aliases
Related
Published
2021-02-11T22:15:12.507Z
Modified
2026-03-15T22:36:51.866988Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/nextauthjs/next-auth

Affected ranges

Type
GIT
Repo
https://github.com/nextauthjs/next-auth
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.3.0"
        }
    ]
}

Affected versions

v1.*
v1.13.0
v2.*
v2.0
v2.0.1
v2.1.0
v2.2.0
v3.*
v3.0.0
v3.0.1
v3.1.0
v3.2.0
v3.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21310.json"