CVE-2022-27777: XSS

Published Apr 27, 2022
·
Updated

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

14 affected componentsFixes available
redhat/rubygem-actionview<0:6.1.7-1.el8
0:6.1.7-1.el8
rubyonrails Actionpack Ruby<5.2.7.1
rubyonrails Actionpack Ruby>=6.0.0<6.0.4.8
rubyonrails Actionpack Ruby>=6.1.0<6.1.5.1
rubyonrails Actionpack Ruby>=7.0.0<7.0.2.4
Debian Debian Linux=10.0
redhat/rubygem-actionview<7.0.2.4
7.0.2.4
redhat/rubygem-actionview<6.1.5.1
6.1.5.1
redhat/rubygem-actionview<6.0.4.8
6.0.4.8
redhat/rubygem-actionview<5.2.7.1
5.2.7.1
debian/rails<2:6.1.6.1+dfsg-1
2:6.1.6.1+dfsg-1
debian/rails<2:6.1.6.1+dfsg-1
2:6.1.6.1+dfsg-1
debian/rails<2:6.1.6.1+dfsg-1
2:6.1.6.1+dfsg-1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rubygem-actionview to a version that resolves this vulnerability.

    Fixed in 0:6.1.7-1.el8
  2. Upgrade

    Upgrade redhat/rubygem-actionview to a version that resolves this vulnerability.

    Fixed in 7.0.2.4
  3. Upgrade

    Upgrade redhat/rubygem-actionview to a version that resolves this vulnerability.

    Fixed in 6.1.5.1
  4. Upgrade

    Upgrade redhat/rubygem-actionview to a version that resolves this vulnerability.

    Fixed in 6.0.4.8
  5. Upgrade

    Upgrade redhat/rubygem-actionview to a version that resolves this vulnerability.

    Fixed in 5.2.7.1
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.6.1+dfsg-1
  7. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-2

Event History

Apr 27, 2022
CVE Published
12:00 AM
Apr 29, 2022
Data Sourced
via Red Hat·12:54 PM
DescriptionSeverityAffected Software
May 26, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Aug 10, 2022
Data Sourced
08:21 PM
SeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-27777?

CVE-2022-27777 is a Cross-site scripting (XSS) vulnerability in Action View tag helpers.

2

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.

3

What is the severity of CVE-2022-27777?

The severity of CVE-2022-27777 is high with a CVSS score of 7.5.

4

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.

5

How can I fix CVE-2022-27777?

To fix CVE-2022-27777, update rubygem-actionview to version 7.0.2.4 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203