CVE-2026-126362
Astro reflected XSS via unescaped slot names in svelte renderer
An attacker can run scripts in a victim's browser by tricking them into opening a crafted link.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 9.1.2 | @astrojs/svelte · -15 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-126362 divulgada · CVSS 2.3 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| 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 |
Astro, a web framework for content-driven websites, has a reflected cross-site scripting flaw in its Svelte renderer: a request-supplied slot name containing a quote can break out of an attribute and inject active HTML. An attacker can reach it remotely without logging in, but a victim must take an action, such as opening a crafted link, and the bug only triggers when a hydrated Svelte component dynamically renders the attacker-chosen slot.
Descripción original del registro (GitHub_M)
Astro is a web framework for content-driven websites. From 5.7.3 until 9.1.2, the @astrojs/svelte renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. Request-controlled slot names containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Svelte component using a client:* directive and dynamic rendering of the attacker-chosen slot; components that did not render that slot emitted only Astro's escaped fallback content. Both server rendering and client-side hydration used the unsafe slot name. This issue is fixed in version 9.1.2.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@astrojs/svelte |
Corregida | 9.1.2 | -15 d | 9.1.6 no afectada |
9.1.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/withastro/astro/security/advisories/GHSA-f4j9-crrj-867qhttps://github.com/withastro/astro/commit/5e476365378e41aa2745d003b2383d02008d7b44https://github.com/withastro/astro/releases/tag/@astrojs/svelte@9.1.2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
