CVE-2022-22117 Directus - Stored Cross-Site Scripting (XSS) in Profile Avatar Image
A low-privileged attacker can upload malicious HTML files as avatars, triggering stored XSS when viewed by admins or other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-22117?
CVE-2022-22117 is a medium-severity cross-site scripting vulnerability in directus, published on 10 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2022-22117?
It affects 1 product.
Products include Rangerstudio Directus.
How do I fix CVE-2022-22117?
No fix has been published for CVE-2022-22117 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-22117 being exploited?
There is no known exploitation of CVE-2022-22117 in the wild and no public exploit code.
Other vulnerabilities in directus
Sources
Also known as GHSA-vg7m-46jc-v5vw.