llamaCVEVulnerability Intelligence
/
rails-html-sanitizer

CVE-2026-128069

rails-html-sanitizer cross-site scripting via scrubber state in HTML sanitizer

An unauthenticated attacker can run scripts in a victim's browser by luring them to a crafted page.

Parche disponiblecross-site scripting (XSS)
Descargar PNG JSON
CVSS 3.1
4.7
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -11 d de la divulgación
Exposición5 dDesde la divulgación, 13 nov 2026, 12:17 p. m.
Detección6 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 1.7.2
Monitoreo
Detectada +3
Verificada
2 nov 26
13 nov 26
18 nov 26
19 nov 26
2 nov 26
6 nov 26
11 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.7.2 rails-html-sanitizer · -11 d desde divulgación
Divulgación Publicada CVE-2026-128069 divulgada · CVSS 4.7 (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
Resumen
Resumen generado por IA · CC-BY 4.0 · 13 nov 2026

The rails-html-sanitizer library, used by Rails applications to clean up HTML fragments, can leak one call's permissive allowlist into another call running at the same time in a multithreaded process. An attacker can remotely, without logging in, exploit this by getting a victim to take an action, such as opening a crafted page, which can lead to cross-site scripting when stricter-filtered output is rendered. This only affects applications that are multithreaded and use different tags or attributes options per call, and it is fixed in version 1.7.2.

Descripción original del registro (GitHub_M)

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Before 1.7.2, the HTML4 and HTML5 variants of Rails::HTML::SafeListSanitizer reuse one Rails::HTML::PermitScrubber across calls and mutate its tags and attributes without synchronization. In a multithreaded process, concurrent sanitize calls using different tags: or attributes: options can interleave and cause one call to use the other call's allowlist. If a permissive call admits a script element or event-handler attribute, output expected to be sanitized under a stricter policy can retain it and cause cross-site scripting when rendered. Applications that are single-threaded, use one identical allowlist everywhere, or provide a separate scrubber: are not affected. This issue is fixed in version 1.7.2.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
rails-html-sanitizer< 1.7.2
1.7.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsrails-html-sanitizer
Corregida 1.7.2 -11 d 1.7.2 no afectada
Versiones corregidas1.7.2
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c
Otrahttps://github.com/rails/rails-html-sanitizer/issues/228
Otrahttps://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9
Otrahttps://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2

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