directus is vulnerable to Cross-site Scripting (XSS)
51
Medium Risk
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the layout_options parameter due to improper sanitization of user input in the setContent function. An attacker can inject malicious JavaScript into unsanitized DOM elements, which are later rendered by the client, allowing the execution of arbitrary scripts in the context of the user's session. Exploiting this vulnerability requires the attacker to have permissions to modify or create presets for other users or to chain the attack with another vulnerability to escalate privileges.
You are affected if you are using a version that falls within the vulnerable range.
directus is vulnerable to Cross-site Scripting (XSS) in versions 9.17.0 - 11.3.2.
Upgrade the directus library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant