CVE-2022-24858 Details
Description
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`.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw | CVE | MitigationThird Party Advisory |
| https://next-auth.js.org/configuration/callbacks#redirect-callback | CVE | Vendor Advisory |
| https://next-auth.js.org/getting-started/upgrade-v4 | CVE | Vendor Advisory |
| https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw | [email protected] | MitigationThird Party Advisory |
| https://next-auth.js.org/configuration/callbacks#redirect-callback | [email protected] | Vendor Advisory |
| https://next-auth.js.org/getting-started/upgrade-v4 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
| CWE-290 | Authentication Bypass by Spoofing | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nextauth.js next-auth | >= 3.0.0, < 3.29.2 >= 4.0.0, < 4.3.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 29, 2022 | Initial Analysis | [email protected] |