CVE-2026-126207
Loofah CSS sanitization bypass in url() filtering
Attackers can make a viewer's browser request a chosen URL, exposing IP address and reaching internal hosts.
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 2.25.3 | loofah · -10 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-126207 divulgada · CVSS 4.7 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| 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 | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Loofah, a general library for manipulating and transforming HTML and XML documents, has a CSS sanitization flaw that lets crafted style content bypass its url() checks. Remotely, without logging in, an attacker can make a viewer's browser request an attacker-chosen URL when the content renders or is hovered over, which can reveal the viewer's IP address, user agent, and access timing, and reach internal-network hosts, though no script survives and the attacker cannot read the response.
Descripción original del registro (GitHub_M)
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah::HTML5::Scrub.scrub_css checks only the first parse of a style attribute, then rebuilds CSS with identifier escapes decoded so escaped parentheses, property names, comments, or quotes can become a live url() without a second safety check. An attacker can use list-style to make a viewer's browser request an attacker-chosen URL when content renders, or cursor to make the request on hover. The request can disclose the viewer's IP address, user agent, access timing, and access to internal-network hosts, but no script survives sanitization and the attacker cannot read the response. This issue is fixed in version 2.25.3.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
rubygemsloofah |
Corregida | 2.25.3 | -10 d | 2.25.3 no afectada |
2.25.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767https://github.com/flavorjones/loofah/pull/324https://github.com/flavorjones/loofah/commit/b198a36e44c9c5408163ac50787825e8ca0b166bhttps://github.com/flavorjones/loofah/releases/tag/v2.25.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
