llamaCVEVulnerability Intelligence
/
Loofah

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

Parche disponiblecross-site scripting (XSS)
Descargar PNG JSON
CVSS 4.0
5.3
Media
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
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -10 d de la divulgación
Exposición8 dDesde la divulgación, 12 nov 2026, 4:01 p. m.
Detección17 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 2.25.3
Monitoreo
Detectada +2
Verificada
2 nov 26
12 nov 26
16 nov 26
21 nov 26
2 nov 26
7 nov 26
11 nov 26
16 nov 26
21 nov 26
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

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.

Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:L
AltoBajoNinguno
Integridad (posterior)SI:L
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
loofah≥ 2.25.0 < 2.25.3
2.25.0
2.25.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsloofah
Corregida 2.25.3 -10 d 2.25.3 no afectada
Versiones corregidas2.25.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6
Otrahttps://github.com/flavorjones/loofah/pull/324
Otrahttps://github.com/flavorjones/loofah/commit/62c04841e8252a1b5373afcd2b89fb9b8279e317
Otrahttps://github.com/flavorjones/loofah/releases/tag/v2.25.3

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.