Show plain JSON{"cve": {"data_type": "CVE", "references": {"reference_data": [{"url": "https://github.com/github/view_component/releases/tag/v2.31.2", "name": "https://github.com/github/view_component/releases/tag/v2.31.2", "tags": ["Third Party Advisory"], "refsource": "MISC"}, {"url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf", "name": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf", "tags": ["Third Party Advisory"], "refsource": "CONFIRM"}, {"url": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9", "name": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9", "tags": ["Patch", "Third Party Advisory"], "refsource": "MISC"}, {"url": "https://github.com/github/view_component/releases/tag/v2.49.1", "name": "https://github.com/github/view_component/releases/tag/v2.49.1", "tags": ["Third Party Advisory"], "refsource": "MISC"}]}, "data_format": "MITRE", "description": {"description_data": [{"lang": "en", "value": "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."}]}, "problemtype": {"problemtype_data": [{"description": [{"lang": "en", "value": "CWE-79"}]}]}, "data_version": "4.0", "CVE_data_meta": {"ID": "CVE-2022-24722", "ASSIGNER": "security-advisories@github.com"}}, "impact": {"baseMetricV2": {"cvssV2": {"version": "2.0", "baseScore": 4.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}, "severity": "MEDIUM", "acInsufInfo": false, "impactScore": 2.9, "obtainAllPrivilege": false, "exploitabilityScore": 8.6, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": true}, "baseMetricV3": {"cvssV3": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}, "impactScore": 2.7, "exploitabilityScore": 2.8}}, "publishedDate": "2022-03-02T23:15Z", "configurations": {"nodes": [{"children": [], "operator": "OR", "cpe_match": [{"cpe23Uri": "cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*", "cpe_name": [], "vulnerable": true, "versionEndExcluding": "2.31.2", "versionStartIncluding": "2.31.0"}, {"cpe23Uri": "cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*", "cpe_name": [], "vulnerable": true, "versionEndExcluding": "2.49.1", "versionStartIncluding": "2.32.0"}]}], "CVE_data_version": "4.0"}, "lastModifiedDate": "2022-03-10T15:32Z"}