CVE-2023-27474 HTML Injection in Password Reset email to custom Reset URL in directus
Attackers can inject HTML into password reset emails via custom reset URLs, potentially leading to XSS and account takeover in Directus instances.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-27474?
CVE-2023-27474 is a high-severity cross-site scripting vulnerability in directus, published on 6 Mar 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2023-27474?
2 open source packages ship an affected version, including directus. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
directus npm | All versions | 9.23.0 |
directus npm | All versions | 9.23.0 |
Products include Rangerstudio Directus.
How do I fix CVE-2023-27474?
Upgrade directus to 9.23.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-27474 being exploited?
There is no known exploitation of CVE-2023-27474 in the wild and no public exploit code.
Other vulnerabilities in directus
Sources
Also known as GHSA-4hmq-ggrm-qfc6.