llamaCVEVulnerability Intelligence
/
Grav

CVE-2026-130735

Grav stored XSS via Twig injection in media metadata

Uploaders with media-only or anonymous access can run scripts in every visitor's browser, including admins.

Default setupsParche disponiblecross-site scripting (XSS)
Descargar PNG JSON
CVSS 4.0
9.3
Crítica
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.2.18
Exposición1 dDesde la divulgación, 18 nov 2026, 6:34 a. m.
Detección28 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +1
Verificada
06:34 a. m.
07:01 a. m.
12:38 p. m.
01:28 p. m.
08:58 a. m.
06:34 a. m.
01:10 p. m.
07:46 p. m.
02:22 a. m.
08:58 a. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-130735 divulgada · CVSS 9.3 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Grav from 2.0.0 before 2.2.18 contains a Twig injection vulnerability that allows media-only accounts and anonymous uploaders to execute Twig by placing delimiters in image titles, alt text, class, id, or file names. Attackers can combine injected Twig with the autoescape tag to serve script to every page visitor, including super admins, or expose unpublished page content.

Affects Grav 2.0.0 through 2.2.17 with Page Twig enabled and a public upload form on a page that also shows another medium with a link, lightbox or thumbnail. Fixed in Grav 2.2.18.

¿Qué significa?Media metadata and file names can inject Twig template code into Grav pages. The injected script is served to every page visitor, including super admins, which can lead to a super-admin session, and unpublished page content can also be exposed.
¿Quién está afectado?Grav 2.0.0 through 2.2.17 is affected when Page Twig is enabled, which is on by default for pages since Grav 2.0.19, and a public upload form with a file field sits on a page that also shows another medium with ?link, ?lightbox or ?display=thumbnail. Anonymous uploads are also covered when auto_metadata_exif is enabled, which is off by default. To check, look at the installed Grav version and the auto_metadata_exif and Page Twig settings.
¿Qué hacer?Upgrade Grav to 2.2.18, the fixed version. The facts name no separate vendor patch ids for this issue.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Grav 2.0.0 through 2.2.17“Grav 2.x from 2.0.0 up to and including 2.2.17”
02
Page Twig enabled, which is on by default for pages since Grav 2.0.19“Page Twig is on by default for every page since Grav 2.0.19”
03
Public upload form with a file field, on a page that also shows another medium with a link, lightbox or thumbnail option“when the page also shows another medium with ?link , ?lightbox or ?display=thumbnail”
04
auto_metadata_exif enabled, which is off by default“anonymous visitors on sites with auto_metadata_exif enabled (off by default)”
¿Quién debe revisar?Teams running Grav 2.0.0 through 2.2.17 that allow media uploads, media-only API accounts, or public upload forms on pages showing linked or thumbnail media
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
grav≥ 2.0.0 < 2.2.18
2.0.0
2.2.18
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
grav
Corregida 2.2.18 — —
Versiones corregidas2.2.18
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/getgrav/grav/security/advisories/GHSA-jc8q-6vcj-4x25

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