Intel

AIKIDO-2026-836673

directus is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-788p-cvgf-q973 Published Yesterday

54

Medium Risk

This Affects:

JSdirectus
0.0.1 - 12.0.2
Fixed in 12.1.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

directus is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.