CVE-2022-24814 Details
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.
A cross-site scripting vulnerability has been identified in Directus versions prior to 9.6.1. This issue allows unauthorized execution of JavaScript by inserting an iframe into the rich text HTML interface. The iframe can link to an uploaded HTML file that, in turn, loads a JavaScript file via a script tag. This exploitation bypasses the standard content security policy, enabling the execution of arbitrary JavaScript.
Users can upgrade to Directus version 9.7.0 or later to address this vulnerability. Alternatively, the live embed feature in the WYSIWYG editor can be disabled by adding '{ "media_live_embeds": false }' to the Options Overrides of the Rich Text HTML interface.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/directus/directus/pull/12020 | CVE | Issue TrackingPatchThird Party Advisory |
| https://github.com/directus/directus/releases/tag/v9.7.0 | CVE | Release NotesThird Party Advisory |
| https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84 | CVE | MitigationThird Party Advisory |
| https://github.com/directus/directus/pull/12020 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://github.com/directus/directus/releases/tag/v9.7.0 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84 | [email protected] | MitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rangerstudio directus | < 9.7.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 12, 2022 | Initial Analysis | [email protected] |