Cross-site scripting in Directus - CVE-2023-27474

 

Cross-site scripting in Directus - CVE-2023-27474

Published: March 6, 2023 / Updated: April 23, 2026


Vulnerability identifier: #VU127090
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2023-27474
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to inject HTML content into password reset emails.

The vulnerability exists due to improper neutralization of input during web page generation in the password reset email handling for custom reset URLs when processing query parameters in the reset URL. A remote attacker can supply a specially crafted reset URL with malicious query parameters to inject HTML content into password reset emails.

Only instances relying on an allow-listed custom reset URL are vulnerable.


Affected software

Directus

How to mitigate CVE-2023-27474

Install security update from vendor's website.

Directus - update to 9.23.0

External References

Related Security Bulletins