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.
{
"cna_assigner": "Mend",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22117.json",
"cwe_ids": [
"CWE-79"
]
}{
"cpe": [
"cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:*",
"cpe:2.3:a:rangerstudio:directus:9.0.0:-:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "9.0.1"
},
{
"last_affected": "9.4.1"
},
{
"introduced": "9.0.0-NA"
},
{
"last_affected": "9.0.0-NA"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}