Read the docs
TI-2022-08627 Aliases CVE-2022-24814GHSA-xmjj-3c76-5w84

Cross-site Scripting in Directus

Priority MEDIUM 42CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

Directus is a real-time API and App dashboard for managing SQL database content. Prior to version 9.7.0, unauthorized JavaScript (JS) can be executed by inserting an iframe into the rich text html interface that links to a file uploaded HTML file that loads another uploaded JS file in its script tag. This satisfies the regular content security policy header, which in turn allows the file to run any arbitrary JS. This issue was resolved in version 9.7.0. As a workaround, disable the live embed in the what-you-see-is-what-you-get by adding `{ "media_live_embeds": false }` to the _Options Overrides_ option of the Rich Text HTML interface.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01034 64th percentileScored 2026-11-07
Fix Fixed directus (directus): 9.7.0directus (npm): 9.7.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
directusdirectusbefore 9.7.09.7.0Patch availableCNA
—directus (npm)before 9.7.09.7.0Patch availableGHSA-xmjj-3c76-5w84
  • directus Vendordirectus Affected before 9.7.0 Fixed in 9.7.0 Patch available CNA
  • directus (npm) Vendor— Affected before 9.7.0 Fixed in 9.7.0 Patch available GHSA-xmjj-3c76-5w84

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:*before 9.7.0VulnerableRangerstudio
  • cpe:2.3:a:rangerstudio:directus:*:*:*:*:*:*:*:* Versions before 9.7.0 Vulnerable ·Rangerstudio

Remediation

  • Fix · CNA directus (directus) Fixed in 9.7.0
  • Fix · GHSA-xmjj-3c76-5w84 directus (npm) Fixed in 9.7.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-24814
  2. 2026-10-03 Alias added: GHSA-xmjj-3c76-5w84

References

  • TI-2025-21659 Directus's webhook trigger flows can leak sensitive data CVSS 3.1HIGH 8.6
  • TI-2024-36266 Directus allows unauthenticated access to WebSocket events and operations CVSS 3.1HIGH 7.5
  • TI-2024-26791 Directus allows SSO User Enumeration CVSS 3.1HIGH 7.5
  • TI-2024-23956 Directus is soft-locked by providing a string value to random string util CVSS 3.1HIGH 7.5
  • TI-2024-26624 Directus Incorrectly handles _in` filter CVSS 3.1HIGH 7.7
  • TI-2025-21658 Directus `search` query parameter allows enumeration of non permitted fields CVSS 3.1MEDIUM 5.3
See all 61 →

Sources