CVE-2022-24722 – view_component
Package
Manager: gem
Name: view_component
Vulnerable Version: >=2.31.0 <2.31.2 || >=2.32.0 <2.49.1
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00359 pctl0.574
Details
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component This is an XSS 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.29.1 and 2.49.1 have been released and fully mitigate the vulnerability. Avoid passing user input to the `translate` function, or sanitize the inputs before passing them. ### For more information If you have any questions or comments about this advisory: * Open an issue in the [github/view_component](http://github.com/github/view_component) project
Metadata
Created: 2022-03-02T22:24:05Z
Modified: 2022-03-11T20:08:41Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-cm9w-c4rj-r2cf/GHSA-cm9w-c4rj-r2cf.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-cm9w-c4rj-r2cf
Finding: F008
Auto approve: 1