Medium
Directus - Stored Cross-Site Scripting (XSS) via SVG File Upload
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-22116
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:29 UTC · Revision 1
Source evidence
Directus - Stored Cross-Site Scripting (XSS) via SVG File Upload
core-osv · Original sourcePublished 10 Jan 2022, 15:26 UTC
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.
osv:CVE-2022-22116
Complete source record
{
"id": "c31f03fb936c9e0ef460a7097ad94406d4b6b136d7ad200cc1390f7f38d99131",
"url": "https://osv.dev/vulnerability/CVE-2022-22116",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Directus - Stored Cross-Site Scripting (XSS) via SVG File Upload",
"summary": "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.",
"evidence": "osv:CVE-2022-22116",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-22116",
"aliases": [
"CVE-2022-22116"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/directus/directus",
"type": "GIT",
"events": [
{
"introduced": "ba72d2cfd040f7f0db282ccac006f36df6f05058"
},
{
"last_affected": "4991ba858bdde8bdf03aee475d77a218da6e46ab"
},
{
"introduced": "c95add08ef1386cab6e54546f03d541d889148ed"
},
{
"fixed": "ec86d5412d45136915d9b622b4a890dd26932b10"
}
],
"database_specific": {
"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"
}
]
}
}
],
"versions": [
"9.0.0-NA",
"v9.4.1",
"v9.4.0",
"v9.3.0",
"v9.2.2",
"v9.2.1",
"v9.2.0",
"v9.1.2",
"v9.1.1",
"v9.1.0",
"v9.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-22116.json"
}
}
],
"modified": "2026-10-28T02:30:50.469240755Z",
"provider": "osv",
"references": [
"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-22116",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22116.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-22116",
"https://github.com/directus/directus/commit/ec86d5412d45136915d9b622b4a890dd26932b10"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "Mend",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22116.json"
}
},
"related_cves": [
{
"value": "CVE-2022-22116",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518756,
"published_at": "2022-01-10T15:26:44.139+00:00"
}