GSD-2022-24722
Vulnerability from gsd - Updated: 2022-03-02 00:00Details
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.31.2 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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2022-24722",
"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.",
"id": "GSD-2022-24722"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "view_component",
"purl": "pkg:gem/view_component"
}
}
],
"aliases": [
"CVE-2022-24722",
"GHSA-cm9w-c4rj-r2cf"
],
"details": "This is an XSS vulnerability that has the potential to impact anyone using\ntranslations with the view_component gem. Data received via user input and\npassed as an interpolation argument to the `translate` method is not properly\nsanitized before display.\n\nVersions 2.31.2 and 2.49.1 have been released and fully mitigate the vulnerability.\n\nAvoid passing user input to the `translate` function, or sanitize the inputs\nbefore passing them.\n",
"id": "GSD-2022-24722",
"modified": "2022-03-02T00:00:00.000Z",
"published": "2022-03-02T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf"
},
{
"type": "WEB",
"url": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 8.1,
"type": "CVSS_V3"
}
],
"summary": "XSS via `translate` method of `ViewComponent::Translatable` in view_component gem"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-24722",
"STATE": "PUBLIC",
"TITLE": "Cross-site Scripting in view_component"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "view_component",
"version": {
"version_data": [
{
"version_value": "\u003e= 2.31.0, \u003c 2.31.2"
},
{
"version_value": "\u003e= 2.32.0, \u003c 2.49.1"
}
]
}
}
]
},
"vendor_name": "github"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"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."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf",
"refsource": "CONFIRM",
"url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf"
},
{
"name": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9",
"refsource": "MISC",
"url": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9"
},
{
"name": "https://github.com/github/view_component/releases/tag/v2.31.2",
"refsource": "MISC",
"url": "https://github.com/github/view_component/releases/tag/v2.31.2"
},
{
"name": "https://github.com/github/view_component/releases/tag/v2.49.1",
"refsource": "MISC",
"url": "https://github.com/github/view_component/releases/tag/v2.49.1"
}
]
},
"source": {
"advisory": "GHSA-cm9w-c4rj-r2cf",
"discovery": "UNKNOWN"
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2022-24722",
"cvss_v3": 8.1,
"date": "2022-03-02",
"description": "This is an XSS vulnerability that has the potential to impact anyone using\ntranslations with the view_component gem. Data received via user input and\npassed as an interpolation argument to the `translate` method is not properly\nsanitized before display.\n\nVersions 2.31.2 and 2.49.1 have been released and fully mitigate the vulnerability.\n\nAvoid passing user input to the `translate` function, or sanitize the inputs\nbefore passing them.\n",
"gem": "view_component",
"ghsa": "cm9w-c4rj-r2cf",
"patched_versions": [
"\u003e= 2.49.1",
"~\u003e 2.31.2"
],
"related": {
"url": [
"https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9"
]
},
"title": "XSS via `translate` method of `ViewComponent::Translatable` in view_component gem",
"unaffected_versions": [
"\u003c 2.31.0"
],
"url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=2.31.0 \u003c2.31.2||\u003e=2.32.0 \u003c2.49.1",
"affected_versions": "All versions starting from 2.31.0 before 2.31.2, all versions starting from 2.32.0 before 2.49.1",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-79",
"CWE-937"
],
"date": "2022-03-02",
"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.",
"fixed_versions": [
"2.31.2",
"2.49.1"
],
"identifier": "CVE-2022-24722",
"identifiers": [
"GHSA-cm9w-c4rj-r2cf",
"CVE-2022-24722"
],
"not_impacted": "All versions before 2.31.0, all versions starting from 2.31.2 before 2.32.0, all versions starting from 2.49.1",
"package_slug": "gem/view_component",
"pubdate": "2022-03-02",
"solution": "Upgrade to versions 2.31.2, 2.49.1 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf",
"https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9",
"https://github.com/advisories/GHSA-cm9w-c4rj-r2cf"
],
"uuid": "30f88fbc-2727-4fb2-b179-507a18633961"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*",
"cpe_name": [],
"versionEndExcluding": "2.31.2",
"versionStartIncluding": "2.31.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:github:viewcomponent:*:*:*:*:*:ruby_on_rails:*:*",
"cpe_name": [],
"versionEndExcluding": "2.49.1",
"versionStartIncluding": "2.32.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-24722"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"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"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/github/view_component/releases/tag/v2.31.2",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/github/view_component/releases/tag/v2.31.2"
},
{
"name": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf",
"refsource": "CONFIRM",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf"
},
{
"name": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9"
},
{
"name": "https://github.com/github/view_component/releases/tag/v2.49.1",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/github/view_component/releases/tag/v2.49.1"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 4.3,
"confidentialityImpact": "NONE",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": true
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7
}
},
"lastModifiedDate": "2022-03-10T15:32Z",
"publishedDate": "2022-03-02T23:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…