HTML Injection in Password Reset email to custom Reset URL in directus
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| directus | directus | before 9.23.0 | 9.23.0 | Patch available | CNA |
| — | directus (npm) | before 9.23.0 | 9.23.0 | Patch available | GHSA-4hmq-ggrm-qfc6 |
- directus Vendordirectus Affected before 9.23.0 Fixed in 9.23.0 Patch available CNA
- directus (npm) Vendor— Affected before 9.23.0 Fixed in 9.23.0 Patch available GHSA-4hmq-ggrm-qfc6
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:* | before 9.23.0 | Vulnerable | Rangerstudio |
- cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:* Versions before 9.23.0 Vulnerable ·Rangerstudio
Remediation
- Fix · CNA directus (directus) Fixed in 9.23.0
- Fix · GHSA-4hmq-ggrm-qfc6 directus (npm) Fixed in 9.23.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-27474
- 2026-10-03 Alias added: GHSA-4hmq-ggrm-qfc6
References
More directus vulnerabilities
- TI-2025-21659 Directus's webhook trigger flows can leak sensitive data CVSS 3.1HIGH 8.6
- TI-2024-36266 Directus allows unauthenticated access to WebSocket events and operations CVSS 3.1HIGH 7.5
- TI-2024-26791 Directus allows SSO User Enumeration CVSS 3.1HIGH 7.5
- TI-2024-23956 Directus is soft-locked by providing a string value to random string util CVSS 3.1HIGH 7.5
- TI-2024-26624 Directus Incorrectly handles _in` filter CVSS 3.1HIGH 7.7
- TI-2025-21658 Directus `search` query parameter allows enumeration of non permitted fields CVSS 3.1MEDIUM 5.3
Sources
- CVE-2023-27474 · CVE Program
- CVE-2023-27474 · NVD
- FIRST EPSS
- GHSA-4hmq-ggrm-qfc6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences