CVE-2022-24722
Cross-site Scripting in view_component
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
VIewComponent es un framework para construir componentes de visualización en Ruby on Rails. Las versiones anteriores a 2.31.2 y 2.49.1 contienen una vulnerabilidad de tipo cross-site scripting que presenta el potencial de afectar a cualquiera usando traducciones con la gema view_component. Los datos recibidos por medio de la entrada del usuario y pasados como argumento de interpolación al método "translate" no son saneados apropiadamente antes de ser mostrados. Las versiones 2.31.2 y 2.49.1 han sido publicadas y mitigan completamente la vulnerabilidad. Como medida de mitigación, evite pasar entradas del usuario a la función "translate", o sanee las entradas antes de pasarlas
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-02-10 CVE Reserved
- 2022-03-02 CVE Published
- 2024-08-03 CVE Updated
- 2024-10-06 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/github/view_component/releases/tag/v2.31.2 | Third Party Advisory | |
https://github.com/github/view_component/releases/tag/v2.49.1 | Third Party Advisory | |
https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9 | 2022-03-10 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Github Search vendor "Github" | Viewcomponent Search vendor "Github" for product "Viewcomponent" | >= 2.31.0 < 2.31.2 Search vendor "Github" for product "Viewcomponent" and version " >= 2.31.0 < 2.31.2" | ruby_on_rails |
Affected
| ||||||
Github Search vendor "Github" | Viewcomponent Search vendor "Github" for product "Viewcomponent" | >= 2.32.0 < 2.49.1 Search vendor "Github" for product "Viewcomponent" and version " >= 2.32.0 < 2.49.1" | ruby_on_rails |
Affected
|