Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. directus
  4. ›
  5. CVE-2022-24814

CVE-2022-24814: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

April 5, 2022 (updated April 6, 2022)

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.

References

  • github.com/advisories/GHSA-xmjj-3c76-5w84
  • github.com/directus/directus/pull/12020
  • github.com/directus/directus/releases/tag/v9.7.0
  • github.com/directus/directus/security/advisories/GHSA-xmjj-3c76-5w84
  • nvd.nist.gov/vuln/detail/CVE-2022-24814

Code Behaviors & Features

Detect and mitigate CVE-2022-24814 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.7.0

Fixed versions

  • 9.7.0

Solution

Upgrade to version 9.7.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/directus/CVE-2022-24814.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.