{"api_version":"1","generated_at":"2026-07-24T20:00:28+00:00","cve":"CVE-2022-24814","urls":{"html":"https://cve.report/CVE-2022-24814","api":"https://cve.report/api/cve/CVE-2022-24814.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24814","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24814"},"summary":{"title":"CVE-2022-24814","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-04-04 18:15:00","updated_at":"2022-04-12 09:32:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84","name":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84","refsource":"CONFIRM","tags":[],"title":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus · Advisory · directus/directus · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/directus/directus/pull/12020","name":"https://github.com/directus/directus/pull/12020","refsource":"MISC","tags":[],"title":"Allow configuring /assets endpoint CSP separately  by rijkvanzanten · Pull Request #12020 · directus/directus · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/directus/directus/releases/tag/v9.7.0","name":"https://github.com/directus/directus/releases/tag/v9.7.0","refsource":"MISC","tags":[],"title":"Release v9.7.0 · directus/directus · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24814","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24814","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24814","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rangerstudio","cpe5":"directus","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24814","STATE":"PUBLIC","TITLE":"Cross-site Scripting in Directus"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"directus","version":{"version_data":[{"version_value":"< 9.7.0"}]}}]},"vendor_name":"directus"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84","refsource":"CONFIRM","url":"https://github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84"},{"name":"https://github.com/directus/directus/pull/12020","refsource":"MISC","url":"https://github.com/directus/directus/pull/12020"},{"name":"https://github.com/directus/directus/releases/tag/v9.7.0","refsource":"MISC","url":"https://github.com/directus/directus/releases/tag/v9.7.0"}]},"source":{"advisory":"GHSA-xmjj-3c76-5w84","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-04-04 18:15:00","lastModifiedDate":"2022-04-12 09:32:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:*","versionEndExcluding":"9.7.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24814","Ordinal":"228306","Title":"CVE-2022-24814","CVE":"CVE-2022-24814","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24814","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}