Intel

AIKIDO-2026-836673

directus is vulnerable to Cross-Site Scripting (XSS)

GHSA-788p-cvgf-q973Published Aug 6, 2026
August 6, 2026

54

CVE Score

Medium

Cross-Site Scripting (XSS)

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.

How do I fix this?

Upgrade the directus library to the patch version.

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.

Package

Versions

0.0.1 - 12.0.2

Fixed in 12.1.0

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea