# CVE-2022-24814: Cross-site Scripting in Directus

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2022-04-04T17:50:11.000Z
- Modified: 2026-06-17T04:32:34.783Z
- Also known as: GHSA-xmjj-3c76-5w84
- 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. Prior to version 9.7.0, unauthorized JavaScript (JS) can be executed by inserting an iframe into the rich text html interface that links to a file uploaded HTML file that loads another uploaded JS file in its script tag. This satisfies the regular content security policy header, which in turn allows the file to run any arbitrary JS. This issue was resolved in version 9.7.0. As a workaround, disable the live embed in the what-you-see-is-what-you-get by adding `{ "media_live_embeds": false }` to the _Options Overrides_ option of the Rich Text HTML interface.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84> (mitigation, third-party-advisory, web)
- <https://github.com/directus/directus/pull/12020> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/directus/directus/releases/tag/v9.7.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24814> (advisory)
- <https://github.com/directus/directus> (package)

## Sources

- CVE List: [CVE-2022-24814](https://www.cve.org/CVERecord?id=CVE-2022-24814), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-xmjj-3c76-5w84](https://github.com/advisories/GHSA-xmjj-3c76-5w84), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24814](https://nvd.nist.gov/vuln/detail/CVE-2022-24814), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24814 · Whole record: https://cve.day/CVE-2022-24814.json · Rebuilt by cve.day 2026-11-25T22:58:10.399Z
