directus
Affected
- introduced
0, fixed11.13.0(semver)
Fixed versions
11.13.0
Fix
- Fixed version
11.13.0npm install [email protected]
Advisory
Also known as: CVE-2025-64747
Directus is Vulnerable to Stored Cross-site Scripting
Summary
A stored cross-site scripting (XSS) vulnerability exists that allows users with upload files and edit item permissions to inject malicious JavaScript through the Block Editor interface. Attackers can bypass Content Security Policy (CSP) restrictions by combining file uploads with iframe srcdoc attributes, resulting in persistent XSS execution.
Details
The vulnerability arises from insufficient sanitization in the Block Editor interface when processing JSON content containing HTML elements. The attack requires two permissions:
upload files - To upload malicious JavaScript filesedit item - To create or modify content with the Block EditorAttack Vector:
The payload is injected through direct API manipulation (PATCH request) to bypass client-side validation, targeting the Block Editor's paragraph data structure within the JSON content field.
Impact
This vulnerability enables:
Medium Basis: The source's own band: MODERATE
0, fixed 11.13.0 (semver)11.13.0
11.13.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0