CVE-2022-24814: Directus - Stored Cross-Site Scripting
- Cve: CVE-2022-24814
- Name: Directus - Stored Cross-Site Scripting
- 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.
- Impact: Attackers can execute arbitrary JavaScript in the context of users, potentially leading to session hijacking, data theft, or site defacement.
- Remediation: Update to version 9.7.0 or later. As a workaround, disable live embeds in the rich text HTML interface options.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01034
- Epss percentile: 0.64524
- Assignee: [email protected]
- Published at: 2022-04-04T18:15:08Z
- Age in days: 1695
- Modified at: 2026-06-17T04:32:34Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24814
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/directus/directus/pull/12020 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84 | Mitigation, Third Party Advisory |
| https://github.com/directus/directus/releases/tag/v9.7.0 | Release Notes, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rangerstudio:directus | < 9.7.0 | no | nvd | /v1/products/rangerstudio/directus |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| directus/directus | package, pull, releases, security_advisory | yes | /v1/repositories/directus/directus |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts