# CVE-2023-27474: HTML Injection in Password Reset email to custom Reset URL in directus

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2023-03-06T16:43:54.836Z
- Modified: 2026-09-10T03:49:52.346Z
- Also known as: GHSA-4hmq-ggrm-qfc6
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- directus directus: < 9.23.0
- directus (npm): before 9.23.0
- rangerstudio directus: before 9.23.0

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/directus/directus/security/advisories/GHSA-4hmq-ggrm-qfc6> (issue-tracking, vendor-advisory, web)
- <https://github.com/directus/directus/issues/17119> (issue-tracking, mailing-list, third-party-advisory, web)
- <https://github.com/directus/directus/pull/17120> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-27474> (advisory)
- <https://github.com/directus/directus> (package)

## Sources

- CVE List: [CVE-2023-27474](https://www.cve.org/CVERecord?id=CVE-2023-27474), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-4hmq-ggrm-qfc6](https://github.com/advisories/GHSA-4hmq-ggrm-qfc6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-27474](https://nvd.nist.gov/vuln/detail/CVE-2023-27474), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-27474 · Whole record: https://cve.day/CVE-2023-27474.json · Rebuilt by cve.day 2026-11-25T22:58:22.288Z
