CVE-2026-128068
rails-html-sanitizer regex denial of service in HTML sanitizer
A remote attacker can send crafted HTML to consume excessive CPU time, if SVG use elements with href are allowed.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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-128068 divulgada · CVSS 5.3 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| 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 |
rails-html-sanitizer, the library that cleans HTML fragments in Rails applications, can be made to consume excessive CPU time by a remote attacker who submits crafted HTML, without logging in. This only happens when an application customizes its allowed tags to include the SVG `use` element and permits `href` or `xlink:href`, because the default configuration is not affected.
Descripción original del registro (GitHub_M)
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression matching for this pattern, while CRuby 3.1 and earlier and JRuby are 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-cpgf-5mjf-73p7https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865https://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.
