CVE-2022-27777: XSS
A flaw was found in rubygem-actionview when untrusted data such as the hash key for tag attributes are not properly escaped. This flaw allows an attacker to perform a Cross-site scripting attack.
Other sources
A XSS Vulnerability in Action View tag helpers >= 5.2.0 and < 5.2.0 which would allow an attacker to inject content if able to control input into specific attributes.
There is a possible XSS vulnerability in Action View tag helpers. Passing untrusted input as hash keys can lead to a possible XSS vulnerability.
References:
https://github.com/rubysec/ruby-advisory-db/tree/master/gems/actionview/CVE-2022-27777.yml
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:5.2.2.1+dfsg-1+deb10u5Fixed in 2:6.0.3.7+dfsg-2+deb11u2Fixed in 2:6.1.7.3+dfsg-1Fixed in 2:6.1.7.3+dfsg-2 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 0:6.1.7-1.el8 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 7.0.2.4 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 6.1.5.1 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 6.0.4.8 - Upgrade
Upgrade
redhat/rubygem-actionviewto a version that resolves this vulnerability.Fixed in 5.2.7.1
Event History
Frequently Asked Questions
What is CVE-2022-27777?
CVE-2022-27777 is a Cross-site scripting (XSS) vulnerability in Action View tag helpers.
How does CVE-2022-27777 work?
CVE-2022-27777 occurs when untrusted data, like the hash key for tag attributes, are not properly escaped, allowing an attacker to execute a XSS attack.
What is the severity of CVE-2022-27777?
The severity of CVE-2022-27777 is high with a CVSS score of 7.5.
Which versions of rubygem-actionview are affected by CVE-2022-27777?
rubygem-actionview versions >= 5.2.0 and < 7.0.2.4 are affected by CVE-2022-27777.
How can I fix CVE-2022-27777?
To fix CVE-2022-27777, update rubygem-actionview to version 7.0.2.4 or higher.