All vulnerabilities

Servers and applications

GHSA-788p-cvgf-q973

Stored cross-site scripting via unsanitized project color in the generated favicon

Severity
Medium 5.4
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

The Directus app builds a fallback favicon from the configured project color by interpolating that color into an SVG markup string and assigning the result to innerHTML. Because the value is never escaped or validated as a color, a crafted project color breaks out of the SVG context and injects arbitrary HTML, which executes script in the origin of the Directus application when a browser loads the app.

generateFavicon (app/src/utils/generate-favicon.ts) accepted the project color as a string, embedded it in an SVG declaration, and parsed the resulting markup by assigning it to the innerHTML of a

`. No HTML or CSS escaping was applied at any point on that path.

The value passed in is project_color from the directus_settings singleton, surfaced to the app through the /server/info endpoint. Any principal permitted to update directus_settings can therefore persist an arbitrary string into this sink.

From directus/directus's security advisory. Shortened; the full text is there.

Workarounds

Restrict update access on directus_settings to trusted administrators, and confirm that project_color holds a valid color value.

Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.1.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References