CVE-2022-24814
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus
Impact
### Impact Unauthorized JavaScript 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. ### Patches This was resolved in https://github.com/directus/directus/pull/12020 which is released in 9.7.0 ### Workarounds You can disable the live embed in the WYSIWYG by adding `{ "media_live_embeds": false }` to the _Options Overrides_ option of the Rich Text HTML interface. ### References https://github.com/directus/directus/pull/12020 ### For more information If you have any questions or comments about this advisory: * Open an issue in [directus/directus](https://github.com/directus/directus) * Email us at [security@directus.io](mailto:security@directus.io)
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | directus | < 9.7.0 | 9.7.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Rangerstudio | Directus | before 9.7.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/directus/directus/pull/12020
- https://github.com/directus/directus/releases/tag/v9.7.0
- https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84
- https://github.com/advisories/GHSA-xmjj-3c76-5w84
- https://nvd.nist.gov/vuln/detail/CVE-2022-24814