CVE-2022-24814

Cross-site Scripting in Directus

MEDIUM
6.1
CVSS Score
Published: April 4, 2022 at 05:50 PM UTC
Updated: June 17, 2026 at 04:32 AM UTC
2 products affected across 2 vendorsDirectusDirectus

Using directus by directus?

Get instant alerts when new vulnerabilities affect directus - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 9.7.0
Affected range stops below 9.7.0, so it looks safe — our inference, not a vendor statement
v < 9.7.0
Affected range stops below 9.7.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCIssue TrackingPatchThird Party Advisory
https://github.com/directus/directus/pull/12020
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/directus/directus/releases/tag/v9.7.0

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card