Skip to content

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus

High
rijkvanzanten published GHSA-xmjj-3c76-5w84 Apr 4, 2022

Package

npm directus (npm)

Affected versions

< 9.6.1

Patched versions

9.7.0

Description

Impact

Unauthorized JavaScript 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.

Patches

This was resolved in #12020 which is released in 9.7.0

Workarounds

You can disable the live embed in the WYSIWYG by adding { "media_live_embeds": false } to the Options Overrides option of the Rich Text HTML interface.

References

#12020

For more information

If you have any questions or comments about this advisory:

Severity

High

CVE ID

CVE-2022-24814

Weaknesses