{"id":"GHSA-fr3w-2p22-6w7p","revision":"a84be43037b041558713cc164af7890b","records":[{"revision":"a84be43037b041558713cc164af7890b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-fr3w-2p22-6w7p","aliases":["CVE-2024-28239"],"title":"URL Redirection to Untrusted Site in OAuth2/OpenID in directus","description":"### Summary\nThe 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 https://docs.directus.io/reference/authentication.html#login-using-sso-providers /auth/login/google?redirect for example.\n\n### Details\nThere'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`, which I think is here: https://github.com/directus/directus/blob/main/api/src/auth/drivers/oauth2.ts#L394. 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.\n\n### PoC\nTurn on any auth provider in Directus instance. Form a link to `directus-instance/auth/login/:provider_id?redirect=http://malicious-fishing-site.com`, login and get taken to malicious-site. Tested on the `ory` OAuth2 integration.\n\n### Impact\nUsers who login via OAuth2 into Directus.","state":0,"publishedAt":"2024-03-12T20:50:48+00:00","modifiedAt":"2026-09-10T03:50:10.4810711+00:00","affected":[{"ecosystem":"npm","name":"directus","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"10.10.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/directus/directus/security/advisories/GHSA-fr3w-2p22-6w7p","https://nvd.nist.gov/vuln/detail/CVE-2024-28239","https://github.com/directus/directus/commit/5477d7d61babd7ffc2f835d399bf79611b15b203","https://docs.directus.io/reference/authentication.html#login-using-sso-providers","https://github.com/directus/directus"],"sourceUrl":"https://github.com/advisories/GHSA-fr3w-2p22-6w7p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-fr3w-2p22-6w7p","identifiers":["GHSA-fr3w-2p22-6w7p","CVE-2024-28239"]},"retained":false,"historicalAffected":[]}],"coverage":[]}