{"id":"CVE-2022-24858","state":"PUBLISHED","title":"Default redirect callback vulnerable to open redirects","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`.","publishedAt":"2022-04-19T22:25:10.000Z","updatedAt":"2025-04-23T18:33:56.817Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["nextauthjs next-auth"],"affected":[{"vendor":"nextauthjs","product":"next-auth","versions":[{"version":"< 3.29.2, < 4.3.2","status":"affected"}]}],"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"],"weaknesses":["CWE-290"],"ingestedAt":"2026-10-29T19:49:43.915Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/24xxx/CVE-2022-24858.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-24858","state":"PUBLISHED","datePublished":"2022-04-19T22:25:10.000Z","dateUpdated":"2025-04-23T18:33:56.817Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-02-10T00:00:00.000Z"},"containers":{"cna":{"title":"Default redirect callback vulnerable to open redirects","descriptions":[{"lang":"en","value":"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`."}],"affected":[{"vendor":"nextauthjs","product":"next-auth","versions":[{"version":"< 3.29.2, < 4.3.2","status":"affected"}]}],"references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","tags":["x_refsource_CONFIRM"]},{"url":"https://next-auth.js.org/configuration/callbacks#redirect-callback","tags":["x_refsource_MISC"]},{"url":"https://next-auth.js.org/getting-started/upgrade-v4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-290","description":"CWE-290: Authentication Bypass by Spoofing","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-04-19T22:25:10.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-f9wg-5f46-cjmw","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24858","STATE":"PUBLIC","TITLE":"Default redirect callback vulnerable to open redirects"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"next-auth","version":{"version_data":[{"version_value":"< 3.29.2, < 4.3.2"}]}}]},"vendor_name":"nextauthjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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`."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-290: Authentication Bypass by Spoofing"}]}]},"references":{"reference_data":[{"name":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","refsource":"CONFIRM","url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw"},{"name":"https://next-auth.js.org/configuration/callbacks#redirect-callback","refsource":"MISC","url":"https://next-auth.js.org/configuration/callbacks#redirect-callback"},{"name":"https://next-auth.js.org/getting-started/upgrade-v4","refsource":"MISC","url":"https://next-auth.js.org/getting-started/upgrade-v4"}]},"source":{"advisory":"GHSA-f9wg-5f46-cjmw","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://next-auth.js.org/configuration/callbacks#redirect-callback","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://next-auth.js.org/getting-started/upgrade-v4","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T04:20:50.660Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-23T14:08:09.810528Z","id":"CVE-2022-24858","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-23T18:33:56.817Z"}}]}}}