Vulnerability Details : CVE-2022-24858
next-auth v3 users before version 3.29.2 are impacted. next-auth version 4 users before version 4.3.2 are also impacted. Upgrading to 3.29.2 or 4.3.2 will patch this vulnerability. If you are not able to upgrade for any reason, you can add a configuration to your callbacks option. If you already have a `redirect` callback, make sure that you match the incoming `url` origin against the `baseUrl`.
Vulnerability category: Open redirect
Products affected by CVE-2022-24858
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24858
0.28%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 51 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24858
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:N |
8.6
|
4.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
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-2022-24858
-
This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.Assigned by: security-advisories@github.com (Secondary)
-
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-24858
-
https://next-auth.js.org/configuration/callbacks#redirect-callback
Callbacks | NextAuth.jsVendor Advisory
-
https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw
Default redirect callback vulnerable to open redirects · Advisory · nextauthjs/next-auth · GitHubMitigation;Third Party Advisory
-
https://next-auth.js.org/getting-started/upgrade-v4
Upgrade Guide (v4) | NextAuth.jsVendor Advisory
Jump to