In Directus, versions 9.0.0-alpha.4 through 9.4.1 are vulnerable to stored Cross-Site Scripting (XSS) vulnerability via SVG file upload in media upload functionality. A low privileged attacker can inject arbitrary javascript code which will be executed in a victim’s browser when they open the image URL.
{
"cna_assigner": "Mend",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22116.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "9.0.1"
},
{
"last_affected": "9.4.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:rangerstudio:directus:9.0.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "9.0.0-NA"
},
{
"last_affected": "9.0.0-NA"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "ec86d5412d45136915d9b622b4a890dd26932b10"
}
],
"source": "REFERENCES_COMMIT"
}
]
}