CVE-2026-126361
Astro cross-site scripting in dynamic element name rendering
Attackers can run scripts in a user's browser by injecting attributes through untrusted data used as element names.
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 7.4.5 | astro · -10 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-126361 divulgada · CVSS 2.3 (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 |
Astro, a web framework for content-driven websites, has a cross-site scripting flaw in how it renders dynamic element names. An attacker can reach it remotely, without logging in, but a user must take an action, and the attack only works when an application uses untrusted request or stored data as all or part of an element name.
Descripción original del registro (GitHub_M)
Astro is a web framework for content-driven websites. Prior to 7.4.5, Astro rendered a string used as a dynamic element name as raw HTML after applying an incomplete character filter. A / in the string could make an HTML parser treat the remainder as attributes, allowing untrusted element-name input to inject event-handler markup. The .astro dynamic-tag renderer, JSX renderer, and MDX renderer were affected, and exploitation required an application to use request-controlled or stored untrusted data as all or part of an element name. This issue is fixed in version 7.4.5.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmastro |
Corregida | 7.4.5 | -10 d | 7.4.12 no afectada |
7.4.5Arsenal 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-mh32-jxcr-mh9fhttps://github.com/withastro/astro/pull/18520https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096https://github.com/withastro/astro/releases/tag/astro@7.4.5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
