CVE-2026-126208
Loofah external reference bypass in SVG textPath and mpath
Remote attackers can make a viewer's browser fetch chosen URLs, exposing its 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-126208 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 Ruby library for sanitizing HTML and XML, fails to block some external references in SVG `textPath` and `mpath` elements, so content processed by it can still carry them. An attacker can reach this remotely without logging in, but a viewer must take an action such as rendering the content; in Firefox, that makes the viewer's browser fetch the attacker's URL, which can reveal the viewer's IP address and other details and reach hosts only on the viewer's network.
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's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization. Firefox fetches the attacker-chosen URL when a viewer renders the content, which can disclose the viewer's IP address, user agent, referrer, and access to hosts routable only from the viewer's network. Chrome and WebKit do not fetch these references, and the impact is a network request rather than script execution. The rails-html-sanitizer PermitScrubber reuses the affected safelist when SVG elements are permitted. 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-345x-3rq2-jfrmhttps://github.com/flavorjones/loofah/pull/324https://github.com/flavorjones/loofah/commit/cdd6ff7fb51998eb181bd2da925ddbcfcc8a3b96https://github.com/flavorjones/loofah/releases/tag/v2.25.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
