What’s Vulnerable › Vulnerabilities
CVE-2022-22116: Directus - Stored Cross-Site Scripting (XSS) via SVG File Upload
- Severity: low (CVSS 3.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-01-10 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- Rangerstudio Directus: from 9.0.1 through 9.4.1; 9.0.0, 9.0.0-alpha10, 9.0.0-alpha11, 9.0.0-alpha12, 9.0.0-alpha13, 9.0.0-alpha14 (+146)
References
- https://github.com/directus/directus/commit/ec86d5412d45136915d9b622b4a890dd26932b10
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-22116
- https://github.com/directus/directus/commit/ec86d5412d45136915d9b622b4a890dd26932b10
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-22116
Get alerted when CVE-2022-22116 or the next vulnerability affects your stack