{"id":"GHSA-xmjj-3c76-5w84","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus","details":"### Impact\n\nUnauthorized 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.\n\n### Patches\n\nThis was resolved in https://github.com/directus/directus/pull/12020 which is released in 9.7.0\n\n### Workarounds\n\nYou 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.\n\n### References\n\nhttps://github.com/directus/directus/pull/12020\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [directus/directus](https://github.com/directus/directus)\n* Email us at [security@directus.io](mailto:security@directus.io)\n","aliases":["CVE-2022-24814"],"modified":"2023-11-08T04:08:37.325340Z","published":"2022-04-05T18:30:15Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-04-05T18:30:15Z","nvd_published_at":"2022-04-04T18:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24814"},{"type":"WEB","url":"https://github.com/directus/directus/pull/12020"},{"type":"PACKAGE","url":"https://github.com/directus/directus"},{"type":"WEB","url":"https://github.com/directus/directus/releases/tag/v9.7.0"}],"affected":[{"package":{"name":"directus","ecosystem":"npm","purl":"pkg:npm/directus"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.7.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-xmjj-3c76-5w84/GHSA-xmjj-3c76-5w84.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}