directus is vulnerable to Cross-Site Scripting (XSS)
54
Medium Risk
The app builds a fallback favicon by interpolating the configured project color into an SVG markup string and assigning the result to innerHTML without escaping or validating the value as a color. A principal permitted to update project settings can persist a crafted color that breaks out of the SVG context and injects arbitrary HTML. Because the color is served through a public server-info endpoint and the favicon is computed by the app's root component, the injected script executes for every visitor who loads the Directus URL, including administrators. The fix assembles the favicon with SVG DOM APIs and sets the color as an attribute value.
You are affected if you are using a version that falls within the vulnerable range and an account that can update project settings (including project color) is not fully trusted.
directus is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 12.0.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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant