# CVE-2022-24858: Default redirect callback vulnerable to open redirects

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-04-19T22:25:10.000Z
- Modified: 2026-06-17T04:32:40.473Z
- Also known as: GHSA-f9wg-5f46-cjmw
- Weaknesses: CWE-290, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- nextauthjs next-auth: < 3.29.2, < 4.3.2
- next-auth (npm): before 3.29.2; from 4.0.0 before 4.3.2
- nextauth.js next-auth: from 3.0.0 before 3.29.2; from 4.0.0 before 4.3.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw> (mitigation, third-party-advisory, web)
- <https://next-auth.js.org/configuration/callbacks#redirect-callback> (vendor-advisory, web)
- <https://next-auth.js.org/getting-started/upgrade-v4> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24858> (advisory)
- <https://github.com/nextauthjs/next-auth/commit/6e15bdcb2d93c1ad5ee3889f702607637e79db50> (web)
- <https://github.com/nextauthjs/next-auth> (package)
- <https://github.com/nextauthjs/next-auth/releases/tag/next-auth%40v4.3.2> (web)

## Sources

- CVE List: [CVE-2022-24858](https://www.cve.org/CVERecord?id=CVE-2022-24858), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-f9wg-5f46-cjmw](https://github.com/advisories/GHSA-f9wg-5f46-cjmw), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24858](https://nvd.nist.gov/vuln/detail/CVE-2022-24858), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24858 · Whole record: https://cve.day/CVE-2022-24858.json · Rebuilt by cve.day 2026-11-25T22:58:10.934Z
