Advisory

GHSA-xmjj-3c76-5w84

Also known as: CVE-2022-24814

Summary

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

Details

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 https://github.com/directus/directus/pull/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

https://github.com/directus/directus/pull/12020

For more information

If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-04-05 18:30 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

directus

npm · All systems

Affected

  • introduced 0, fixed 9.7.0 (semver)

Fixed versions

9.7.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences