What’s Vulnerable › Vulnerabilities
CVE-2023-27474: HTML Injection in Password Reset email to custom Reset URL in directus
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-03-06 · updated 2026-06-17
- Weakness: CWE-79
Description
Directus is a real-time API and App dashboard for managing SQL database content. Instances relying on an allow-listed reset URL are vulnerable to an HTML injection attack through the use of query parameters in the reset URL. An attacker could exploit this to email users urls to the servers domain but which may contain malicious code. The problem has been resolved and released under version 9.23.0. People relying on a custom password reset URL should upgrade to 9.23.0 or later, or remove the custom reset url from the configured allow list. Users are advised to upgrade. Users unable to upgrade may disable the custom reset URL allow list as a workaround.
Affected products
- Rangerstudio Directus: before 9.23.0 — fixed in 9.23.0
How to fix
Upgrade to a fixed version: Rangerstudio Directus 9.23.0. Check the vendor advisory for mitigations.
References
- https://github.com/directus/directus/issues/17119
- https://github.com/directus/directus/pull/17120
- https://github.com/directus/directus/security/advisories/GHSA-4hmq-ggrm-qfc6
- https://github.com/directus/directus/issues/17119
- https://github.com/directus/directus/pull/17120
- https://github.com/directus/directus/security/advisories/GHSA-4hmq-ggrm-qfc6
Get alerted when CVE-2023-27474 or the next vulnerability affects your stack