CVE-2022-24722Github Viewcomponent
Media 6.1 Sin autenticación
Seguir: esta CVE · Github · Github Viewcomponent Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.1% probabilidad de explotación en 30 días · percentil 64
- Requiere autenticación
- No
- Publicada
- 2 mar 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Qué pasa
VIewComponent is a framework for building view components in Ruby on Rails. Versions prior to 2.31.2 and 2.49.1 contain a cross-site scripting vulnerability that has the potential to impact anyone using translations with the view_component gem. Data received via user input and passed as an interpolation argument to the `translate` method is not properly sanitized before display. Versions 2.31.2 and 2.49.1 have been released and fully mitigate the vulnerability. As a workaround, avoid passing user input to the `translate` function, or sanitize the inputs before passing them.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Viewcomponent.
- 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 | view_component |
≥ 2.31.0 < 2.31.2 |
2.31.2 |
gem "view_component", ">= 2.31.2" |
| RubyGems | view_component |
≥ 2.32.0 < 2.49.1 |
2.49.1 |
gem "view_component", ">= 2.49.1" |
Según OSV / GitHub Advisories (GHSA-cm9w-c4rj-r2cf). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| github | viewcomponent | ≥ 2.31.0 < 2.31.2 |
| github | viewcomponent | ≥ 2.32.0 < 2.49.1 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory