{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-24722","published":"2022-03-02T23:15:09.243000Z","last_modified":"2026-06-17T04:32:22.350000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*","part":"a","vendor":"github","product":"viewcomponent","version_start_including":"2.31.0","version_end_excluding":"2.31.2"},{"criteria":"cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*","part":"a","vendor":"github","product":"viewcomponent","version_start_including":"2.32.0","version_end_excluding":"2.49.1"}],"cpes_truncated":false,"vendors":["github"],"products":["github/viewcomponent"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.01072,"percentile":0.64439,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-cm9w-c4rj-r2cf","ecosystem":"RubyGems","name":"view_component","purl":"pkg:gem/view_component","ranges":[{"introduced":"2.31.0","fixed":"2.31.2"}],"versions":["2.31.0","2.31.1"],"versions_truncated":false},{"advisory":"GHSA-cm9w-c4rj-r2cf","ecosystem":"RubyGems","name":"view_component","purl":"pkg:gem/view_component","ranges":[{"introduced":"2.32.0","fixed":"2.49.1"}],"versions":["2.32.0","2.33.0","2.34.0","2.35.0","2.36.0","2.37.0","2.38.0","2.39.0","2.40.0","2.41.0","2.42.0","2.43.0","2.43.1","2.44.0","2.45.0","2.46.0","2.47.0","2.48.0","2.49.0"],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2022-24722/","html_en":"/en/cve/CVE-2022-24722/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24722","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24722"},"untrusted":{"vendor_name":"Github","product_name":"Viewcomponent","desc_en":"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.","affected":[{"untrusted_vendor":"github","untrusted_product":"view_component","versions":[]}],"references":[{"url":"https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/github/view_component/releases/tag/v2.31.2","tags":["Third Party Advisory"]},{"url":"https://github.com/github/view_component/releases/tag/v2.49.1","tags":["Third Party Advisory"]},{"url":"https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf","tags":["Third Party Advisory"]}]}}