directus is vulnerable to Cross-Site Scripting (XSS)
54
CVE Score
Medium
Cross-Site Scripting (XSS)
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.
Upgrade the directus library to the patch version.
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.
0.0.1 - 12.0.2
Fixed in 12.1.0directus is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 12.0.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.