llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · directus

GHSA-788P-CVGF-Q973

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

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.4
Media
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -35 d de la divulgación
Exposición108 dDesde la divulgación, 5 ago 2026, 10:24 a. m.
Detección105 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Sin drama: ventana de mantenimiento y listo.Tranqui, pero que no se quede en el olvido.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 12.1.0
Monitoreo
Detectada +1
1 jul 26
5 ago 26
18 nov 26
21 nov 26
1 jul 26
6 ago 26
11 sept 26
17 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 12.1.0 directus · -35 d desde divulgación
Divulgación Publicada GHSA-788P-CVGF-Q973 divulgada · CVSS 5.4 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Description

Summary

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.

Details

`generateFavicon` (`app/src/utils/generate-favicon.ts`) accepted the project color as a string, embedded it in an SVG
`<style>` declaration, and parsed the resulting markup by assigning it to the `innerHTML` of a `<div>`. 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. In the default configuration that is the administrator role; the exposure that matters is a non-admin
policy that has been granted update access to `directus_settings`, which turns settings write access into script
execution in an administrator's session.

Two properties broaden the reach of the payload:

  • The element the markup is parsed into is never attached to the document, but that does not prevent execution. Markup
  • `/server/info` is a public endpoint and the favicon is computed by the app's root component, so the payload fires for
Impact

Stored cross-site scripting in the Directus application. A user with permission to write project settings can persist a
payload that executes for every subsequent visitor to the Directus URL, including administrators, enabling session or
token theft and API actions performed with the victim's privileges. Where settings write access has been delegated to a
non-administrative policy, this constitutes privilege escalation to administrator.

Note that administrators already hold documented code-execution capability in Directus through Flows, extensions, and
custom CSS, so an administrator-only exploitation path does not cross a trust boundary on its own.

Patches

Fixed in Directus 12.1.0. The favicon is now assembled with SVG DOM APIs and the color is set as an attribute value, so
it cannot escape into markup.

Workarounds

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

References
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Credits

Reported by @PhilipPhil

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.2/ 10Alto
Vector 7.2 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
directus< 12.1.0
12.1.0
12.6.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmdirectus
Corregida 12.1.0 -35 d 12.6.1 no afectada
Versiones corregidas12.1.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/directus/directus/security/advisories/GHSA-788p-cvgf-q973

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.