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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
rubygemsrails-html-sanitizer |
Corregida | 1.7.2 | -11 d | 1.7.2 no afectada |
1.7.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458chttps://github.com/rails/rails-html-sanitizer/issues/228https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
