GHSA-f9wg-5f46-cjmw · Severity: medium · Ecosystem: npm — NextAuth.js default redirect callback vulnerable to open redirects
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`.
Conclusion & alert: CVE-2022-24858 is rated Moderate Risk (43.3/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.32%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2025-05-01 | 0.35% | 0.32% | -0.04% |
| 2 | 2025-04-28 | 0.28% | 0.35% | +0.07% |
| 3 | 2025-04-23 | — | 0.28% | — |
Full EPSS history (9 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.1 | 3.1 | MEDIUM |
|
1.6 | 4.0 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
| 5.8 | 2.0 | MEDIUM |
|
8.6 | 4.9 | [email protected] |
GHSA-f9wg-5f46-cjmw · Severity: medium · Ecosystem: npm — NextAuth.js default redirect callback vulnerable to open redirects
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| nextauth.js | next-auth | >= 3.0.0, < 3.29.2 | cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* |
| nextauth.js | next-auth | >= 4.0.0, < 4.3.2 | cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw | Mitigation Third Party Advisory |
| https://next-auth.js.org/configuration/callbacks#redirect-callback | Vendor Advisory |
| https://next-auth.js.org/getting-started/upgrade-v4 | Vendor Advisory |