CVE-2026-126209
Loofah cross-site scripting via URI scheme bypass in sanitizer
A remote attacker can run scripts in a user's browser by tricking them into clicking a crafted link.
Texto original en inglés · Ver en español
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA: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-126209 divulgada · CVSS 5.3 (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 | Verificada | Última verificación contra las fuentes |
Loofah, a library for manipulating HTML and XML, has a flaw in its URI check that lets `javascript:` or `vbscript:` links pass as safe by hiding the scheme behind an encoded numeric character reference. A remote attacker without logging in could use this for cross-site scripting if a user clicks a crafted link in an application that renders the approved value in an `href` or similar URI attribute.
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. From 2.25.0 until 2.25.3, Loofah::HTML5::Scrub.allowed_uri? strips whitespace and control characters before decoding a semicolon-less numeric character reference, changing where the reference ends and hiding a javascript: or vbscript: scheme that a browser reconstructs. The bypass applies to encoded colons and encoded scheme letters when a stripped character terminates the numeric reference. An application that renders the approved value in href or another browser-interpreted URI attribute can allow cross-site scripting, and Rails::HTML::Sanitizer.allowed_uri? re-exports the affected helper. Loofah's default sanitize() path is not affected because Nokogiri decodes entities before URI evaluation. 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-p9wj-w8xq-vjx6https://github.com/flavorjones/loofah/pull/324https://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317https://github.com/flavorjones/loofah/releases/tag/v2.25.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
