CVE-2022-24814
MEDIUM 6.1CVSS 3.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus
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.
- Published
- 4 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-xmjj-3c76-5w84
- Sources
- NVDJSONOSV GHSA-xmjj-3c76-5w84JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rangerstudio | directuscpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:* |
< 9.7.0 | 9.7.0 |
| OSV | npm | directus | < 9.7.0 | 9.7.0 |
References
- 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://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84 · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24814 · ADVISORY
- https://github.com/directus/directus · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 4 Apr 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Apr 2022)