llamaCVEVulnerability Intelligence
/
Astro

CVE-2026-126365

Astro XSS in prism code block highlighting

An attacker can inject HTML and script that runs in a user's browser after they take an action.

Parche disponiblecross-site scripting (XSS)
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: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones2.1.2 · 4.1.2 · 7.4.3
Exposición6 dDesde la divulgación, 12 nov 2026, 5:36 p. m.
Detección8 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, no automatizable e impacto técnico parcial. 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
Fuente: NIST NVD +1
Fuente: OSV
Verificada
12 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
12 nov 26
14 nov 26
16 nov 26
18 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-126365 divulgada · CVSS 5.4 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
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
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

Astro and the @astrojs/prism and @astrojs/markdoc packages can render embedded HTML and script from a code block labeled with an unsupported language, instead of showing it as text. An attacker with a low-privilege account can reach this remotely, but a user must take an action before the script runs.

Descripción original del registro (GitHub_M)

Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc's ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
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
Versiones

Rangos afectados

Afectada Corregida
prism< 4.1.2
astro< 7.4.3
markdoc≥ 0.3.0 < 2.1.2
0.3.0
2.1.2
4.1.2
7.4.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
astro
Corregida 7.4.3 — —
prism
Corregida 4.1.2 — —
markdoc
Corregida 2.1.2 — —
Versiones corregidas2.1.24.1.27.4.3
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf
Otrahttps://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d
Otrahttps://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2
Otrahttps://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2

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