Vulnerability Details : CVE-2021-21310
Potential exploit
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.
Products affected by CVE-2021-21310
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-21310
0.30%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 50 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-21310
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:N/A:N |
8.6
|
2.9
|
NIST | |
5.9
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
2.2
|
3.6
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
1.6
|
4.0
|
GitHub, Inc. |
CWE ids for CVE-2021-21310
-
This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.Assigned by: security-advisories@github.com (Primary)
References for CVE-2021-21310
-
https://www.npmjs.com/package/next-auth
next-auth - npmProduct;Third Party Advisory
-
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-pg53-56cg-4m8q
Insecure email token verification in Prisma adapter · Advisory · nextauthjs/next-auth · GitHubExploit;Third Party Advisory
-
https://github.com/nextauthjs/next-auth/releases/tag/v3.3.0
Release v3.3.0 · nextauthjs/next-auth · GitHubThird Party Advisory
Jump to