{"id":"CVE-2022-24814","published":"2022-04-04T17:50:11Z","modified":"2025-04-23T18:41:43Z","title":"Cross-site Scripting in Directus","vendor":"directus","product":"directus","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01034,"percentile":0.64651,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/directus/directus/pull/12020","tags":["x_refsource_MISC"]},{"url":"https://github.com/directus/directus/releases/tag/v9.7.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":12.93},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"directus","affectedVersions":[{"vendor":"directus","product":"directus","versions":["< 9.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:54:47.074186Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"directus","vulnerableRanges":["<9.7.0"],"patched":["9.7.0"],"from":["GHSA-xmjj-3c76-5w84"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in the Directus real-time API and App dashboard, specifically in its rich text HTML interface, allows injected content to be executed as script. An attacker who can insert an iframe into that interface, referencing uploaded HTML and JS files, can run arbitrary JavaScript; this requires network access, no privileges, and a user to interact with the affected content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:56Z"},"euvd":{"id":"EUVD-2022-1872","exploited":false,"provenance":"source"}}