{"id":"CVE-2024-28239","published":"2024-03-12T20:23:37Z","modified":"2024-08-22T20:47:34Z","title":"URL Redirection to Untrusted Site in OAuth2/OpenID in directus","vendor":"directus","product":"directus","tier":"tail","description":{"text":"Directus is a real-time API and App dashboard for managing SQL database content. The authentication API has a `redirect` parameter that can be exploited as an open redirect vulnerability as the user tries to log in via the API URL. There's a redirect that is done after successful login via the Auth API GET request to `directus/auth/login/google?redirect=http://malicious-fishing-site.com`. While credentials don't seem to be passed to the attacker site, the user can be phished into clicking a legitimate directus site and be taken to a malicious site made to look like a an error message \"Your password needs to be updated\" to phish out the current password. Users who login via OAuth2 into Directus may be at risk. This issue has been addressed in version 10.10.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00583,"percentile":0.48757,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-fr3w-2p22-6w7p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/directus/directus/commit/5477d7d61babd7ffc2f835d399bf79611b15b203","tags":["x_refsource_MISC"]},{"url":"https://docs.directus.io/reference/authentication.html#login-using-sso-providers","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.75},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"directus","affectedVersions":[{"vendor":"directus","product":"directus","versions":["< 10.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-13T16:10:42.050866Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"directus","vulnerableRanges":["<10.10.0"],"patched":["10.10.0"],"from":["GHSA-fr3w-2p22-6w7p"],"provenance":"source"}],"summary":{"text":"The flaw is an open redirect in the OAuth2/OpenID login flow of Directus, a real-time API and dashboard for managing SQL database content, where the authentication API's redirect parameter is not restricted to trusted destinations. An attacker can exploit it by getting a user to click a crafted link to a legitimate Directus login URL with a redirect to an attacker-controlled site, which can be made to look like a password-update prompt to harvest credentials, and this requires network access and user interaction but no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:58Z"},"euvd":{"id":"EUVD-2024-0923","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-directus-cve-2024-28239","children":[{"from":"CVE-2024-28239","to":"CVE-2024-39895","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/env/src/constants/directus-variables.ts"],"commits":["https://github.com/directus/directus/commit/5477d7d61babd7ffc2f835d399bf79611b15b203","https://github.com/directus/directus/commit/543b345695071c1de61a35004bd063fe59dba0c8"],"basis":"rarely changed file"}]},{"from":"CVE-2024-28239","to":"CVE-2026-22032","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["api/src/auth/drivers/saml.ts"],"commits":["https://github.com/directus/directus/commit/5477d7d61babd7ffc2f835d399bf79611b15b203","https://github.com/directus/directus/commit/dad9576ea9362905cc4de8028d3877caff36dc23"],"basis":"shared function","functions":["createSAMLAuthRouter"]}]}],"packageHistory":[{"cve":"CVE-2024-27295","published":"2024-03-01","fixed":"10.8.3","kev":false,"link":{"from":"CVE-2024-27295","to":"CVE-2024-28239","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:directus","fromFixed":"10.8.3","toFixed":"10.10.0","daysApart":11}]}},{"cve":"CVE-2024-27296","published":"2024-03-01","fixed":"10.8.3","kev":false},{"cve":"CVE-2024-28238","published":"2024-03-12","fixed":"10.10.0","kev":false},{"cve":"CVE-2024-28239","published":"2024-03-12","fixed":"10.10.0","kev":false},{"cve":"CVE-2024-34708","published":"2024-05-13","fixed":"10.11.0","kev":false,"link":{"from":"CVE-2024-28239","to":"CVE-2024-34708","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:directus","fromFixed":"10.10.0","toFixed":"10.11.0","daysApart":62}]}},{"cve":"CVE-2024-34709","published":"2024-05-13","fixed":"10.11.0","kev":false,"link":{"from":"CVE-2024-28239","to":"CVE-2024-34709","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:directus","fromFixed":"10.10.0","toFixed":"10.11.0","daysApart":62}]}},{"cve":"CVE-2024-36128","published":"2024-06-03","fixed":"10.11.2","kev":false}],"package":"npm:directus"}}