{"cve":"CVE-2022-24858","nvd":{"published":"2022-04-19T23:15:13.317","modified":"2026-06-17T04:32:40.473","status":"Modified","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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-601","CWE-290"],"references":["https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","https://next-auth.js.org/configuration/callbacks#redirect-callback","https://next-auth.js.org/getting-started/upgrade-v4","https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","https://next-auth.js.org/configuration/callbacks#redirect-callback"],"products":["nextauth.js:next-auth"],"source":"nvd","synced_at":"2026-10-19T21:30:03.577988018+00:00"},"epss":{"cve":"CVE-2022-24858","score":0.0079,"percentile":0.56286,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f9wg-5f46-cjmw","url":"https://osv.dev/vulnerability/GHSA-f9wg-5f46-cjmw","summary":"NextAuth.js default redirect callback vulnerable to open redirects","modified":"2023-11-08T04:08:38.806013Z","packages":[{"ecosystem":"npm","name":"next-auth","purl":"pkg:npm/next-auth","ranges":["<3.29.2"],"fixed":["3.29.2"]},{"ecosystem":"npm","name":"next-auth","purl":"pkg:npm/next-auth","ranges":[">=4.0.0 <4.3.2"],"fixed":["4.3.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}