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.
problem types: CWE-79 Cross-site Scripting (XSS)
affected:
{
product: directus
vendor: directus
versions:
lessThan: unspecified, status: affected, version: 9.0.0, versionType: custom
lessThanOrEqual: 9.4.1, status: affected, version: unspecified, versionType: custom
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 5.4
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: LOW
privilegesRequired: LOW
scope: CHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
version: 3.1
]
solutions: Update to directus version 9.4.2