CVE-2022-24722
Summary
| CVE | CVE-2022-24722 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-03-02 23:15:00 UTC |
| Updated | 2022-03-10 15:32:00 UTC |
| Description | 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Github | Viewcomponent | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Release v2.31.2 · github/view_component · GitHub | MISC | github.com | |
| Release v2.49.1 · github/view_component · GitHub | MISC | github.com | |
| Fix XSS vulnerability when using HTML-safe translations and interpola… · github/view_component@3f82a6e · GitHub | MISC | github.com | |
| Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component · Advisory · github/view_component · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.