{"id":"CVE-2024-39896","aliases":["GHSA-jgf4-vwc3-r46v"],"title":"Directus Allows Single Sign-On User Enumeration","summary":"Directus Allows Single Sign-On User Enumeration","severity":"high","cvss":7.5,"cwe":["CWE-200"],"vendor":"directus","product":"directus","ecosystem":"npm","affected":["directus >= 9.11, < 10.13.0"],"patched":["directus 10.13.0"],"published":"2024-07-08","updated":"2026-09-16","sourceUpdated":"2026-09-16T15:40:35Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-jgf4-vwc3-r46v","references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-jgf4-vwc3-r46v"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39896"},{"url":"https://github.com/directus/directus/commit/454cb534d6ffa547feb11f4d74b932ae7368dae2"},{"url":"https://github.com/advisories/GHSA-jgf4-vwc3-r46v"}],"tags":["ghsa","npm"],"epss":0.00506,"epssPercentile":0.42211,"ingestedAt":"2026-09-16T15:58:38.763Z","slug":"CVE-2024-39896","body":"## Overview\n\n### Impact\nWhen relying on SSO providers in combination with local authentication it can be possible to enumerate existing SSO users in the instance. This is possible because if an email address exists in Directus and belongs to a known SSO provider then it will throw a \"helpful\" error that the user belongs to another provider.\n\n### Reproduction\n\n1. Create a user using a SSO provider `test@directus.io`.\n2. Try to log-in using the regular login form (or the API)\n3. When using a valid email address\n\n| **APP** | **API** |\n| --- | --- |\n| ![image](https://github.com/directus/directus/assets/9389634/1da3301d-226f-46a7-bfb8-3f6fb9bc55cd) | ![image](https://github.com/directus/directus/assets/9389634/50cab310-7d1c-4241-a6be-d06542565767) |\n\n4. When using an invalid email address\n\n| **APP** | **API** |\n| --- | --- |\n| ![image](https://github.com/directus/directus/assets/9389634/7b97659e-b49c-410b-872e-e36786b6e41e) | ![image](https://github.com/directus/directus/assets/9389634/d26ccba7-bb27-437e-991e-99c10941bbe7) |\n\n5. Using this differing error it is possible to determine whether a specific email address is present in the Directus instance as an SSO user.\n\n### Workarounds\nWhen only using SSO for authentication then you can work around this issue by disabling local login using the following environment variable `AUTH_DISABLE_DEFAULT=\"true\"`\n\n### References\nImplemented as feature in https://github.com/directus/directus/pull/13184\nhttps://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account\n\n\n## Affected packages\n\n- `directus >= 9.11, < 10.13.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `directus 10.13.0`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}