CVE-2024-53985Rubyonrails Rails Html Sanitizers
Baja 2.3 Sin autenticación
Seguir: esta CVE · Rubyonrails · Rubyonrails Rails Html Sanitizers Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 29
- CVSS 4.0
- 2.3
- EPSS
- 1.0% probabilidad de explotación en 30 días · percentil 63
- Requiere autenticación
- No
- Publicada
- 2 dic 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Qué pasa
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags with both "math" and "style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Rails Html Sanitizers.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| RubyGems | rails-html-sanitizer |
≥ 1.6.0 < 1.6.1 |
1.6.1 |
gem "rails-html-sanitizer", ">= 1.6.1" |
Según OSV / GitHub Advisories (GHSA-w8gc-x259-rc7x). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| rubyonrails | rails_html_sanitizers | 1.6.0 |
Boletines oficiales
- ruby4.0-rubygem-rails-html-sanitizer-1.7.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10569-1 · 17 abr 2026 Baja
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Patch
- github.com Vendor Advisory