{"id":"CVE-2022-22117","aliases":["EUVD-2022-27266","GHSA-vg7m-46jc-v5vw"],"status":"published","title":"Directus - Stored Cross-Site Scripting (XSS) in Profile Avatar Image","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00654,"percentile":0.51672,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2022-01-10T15:26:45Z","modified":"2026-10-28T02:31:08Z","products":[{"vendor":"directus","product":"directus"},{"vendor":"rangerstudio","product":"directus"}],"references":[{"url":"https://github.com/directus/directus/commit/ec86d5412d45136915d9b622b4a890dd26932b10","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-22117","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22117","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vg7m-46jc-v5vw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22117.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-22117","title":"Directus - Stored Cross-Site Scripting (XSS) in Profile Avatar Image","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","status":"published","published":"2022-01-10T15:26:45.928Z","modified":"2024-09-16T18:44:02.548Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:26.645563Z"}],"euvd":[{"id":"EUVD-2022-27266","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","status":"published","published":"2022-01-10T15:26:45Z","modified":"2024-09-16T18:44:02Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T00:55:29.674428Z"}],"ghsa":[{"id":"GHSA-vg7m-46jc-v5vw","title":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files...","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","status":"published","published":"2022-01-11T00:00:32Z","modified":"2023-02-03T05:04:08Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:53:29.869331Z"}],"nvd":[{"id":"CVE-2022-22117","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","status":"published","published":"2022-01-10T16:15:10.12Z","modified":"2026-06-17T04:27:47.937Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:10.836864Z"}],"osv":[{"id":"CVE-2022-22117","title":"Directus - Stored Cross-Site Scripting (XSS) in Profile Avatar Image","description":"In Directus, versions 9.0.0-alpha.4 through 9.4.1 allow unrestricted file upload of .html files in the media upload functionality, which leads to Cross-Site Scripting vulnerability. A low privileged attacker can upload a crafted HTML file as a profile avatar, and when an admin or another user opens it, the XSS payload gets triggered.","status":"published","published":"2022-01-10T15:26:45.928Z","modified":"2026-10-28T02:31:08.450391909Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:24.061177Z"}]}}
