{"api_version":"1","generated_at":"2026-07-23T11:40:14+00:00","cve":"CVE-2022-24858","urls":{"html":"https://cve.report/CVE-2022-24858","api":"https://cve.report/api/cve/CVE-2022-24858.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24858","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24858"},"summary":{"title":"CVE-2022-24858","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`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-04-19 23:15:00","updated_at":"2022-04-29 23:53:00"},"problem_types":["CWE-601"],"metrics":[],"references":[{"url":"https://next-auth.js.org/configuration/callbacks#redirect-callback","name":"https://next-auth.js.org/configuration/callbacks#redirect-callback","refsource":"MISC","tags":[],"title":"Callbacks | NextAuth.js","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","name":"https://github.com/nextauthjs/next-auth/security/advisories/GHSA-f9wg-5f46-cjmw","refsource":"CONFIRM","tags":[],"title":"Default redirect callback vulnerable to open redirects · Advisory · nextauthjs/next-auth · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://next-auth.js.org/getting-started/upgrade-v4","name":"https://next-auth.js.org/getting-started/upgrade-v4","refsource":"MISC","tags":[],"title":"Upgrade Guide (v4) | NextAuth.js","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24858","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24858","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24858","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nextauth.js","cpe5":"next-auth","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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"}},"nvd":{"publishedDate":"2022-04-19 23:15:00","lastModifiedDate":"2022-04-29 23:53:00","problem_types":["CWE-601"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.3.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nextauth.js:next-auth:*:*:*:*:*:node.js:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.29.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24858","Ordinal":"228159","Title":"CVE-2022-24858","CVE":"CVE-2022-24858","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24858","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}