Loading advisory.
Loading advisory.
Directus is Vulnerable to Stored Cross-site Scripting
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.
Published 2025-11-13 21:13 UTC · Modified 2025-11-14 21:45 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| directus | npm | < 11.13.0 | 11.13.0 | npm install directus@11.13.0 |
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.
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 files
edit item - To create or modify content with the Block Editor
Attack Vector:
JavaScript File Upload: Attackers upload a malicious JavaScript file via the files endpoint, obtaining a file ID accessible through the assets directory
Block Editor Exploitation: Using a JSON field with Block Editor interface, attackers inject raw HTML containing an iframe with srcdoc attribute that references the uploaded file
CSP Bypass: The iframe srcdoc technique circumvents existing CSP protections by creating a new document context that loads the uploaded script
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.
This vulnerability enables:
Persistent XSS - Malicious scripts execute whenever affected content is viewed
Session hijacking - Access to authentication tokens and cookies of users viewing the content
Administrative compromise - If administrators view infected content, their elevated privileges can be exploited
CSP bypass - Demonstrates ineffective security controls, potentially affecting other protections
Data exfiltration - Ability to steal sensitive information displayed in the application
Phishing attacks - Injection of convincing fake login forms or malicious redirects
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.003 | v2026.06.15 |