Headline
GHSA-4hmq-ggrm-qfc6: directus vulnerable to HTML Injection in Password Reset email to custom Reset URL
Impact
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.
Patches
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.
Workarounds
Disable the custom reset URL allow list.
Package
npm directus (npm)
Affected versions
< 9.23.0
Patched versions
9.23.0
Description
Impact
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.
Patches
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.
Workarounds
Disable the custom reset URL allow list.
References
- GHSA-4hmq-ggrm-qfc6
- https://nvd.nist.gov/vuln/detail/CVE-2023-27474
- directus/directus#17119
- directus/directus#17120
br41nslug published to directus/directus
Mar 6, 2023
Published by the National Vulnerability Database
Mar 6, 2023
Published to the GitHub Advisory Database
Mar 7, 2023
Reviewed
Mar 7, 2023
Related news
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.