CVE-2022-22577: XSS

Published Apr 27, 2022
·
Updated

A flaw was found in rubygem-actionpack where CSP headers were sent with responses that Rails considered "HTML" responses. This flaw allows an attacker to leave API requests without CSP headers and perform a Cross-site scripting attack.

Other sources

An XSS Vulnerability in Action Pack >= 5.2.0 and < 5.2.0 that could allow an attacker to bypass CSP for non HTML like responses.

There is a possible XSS vulnerability in Rails / Action Pack.

References:

https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml

Red Hat

Affected Software

12 affected componentsFixes available
debian/rails<=2:5.2.2.1+dfsg-1+deb10u3
2:5.2.2.1+dfsg-1+deb10u52:6.0.3.7+dfsg-2+deb11u22:6.1.7.3+dfsg-12:6.1.7.3+dfsg-2
debian/rails<=2:5.2.2.1+dfsg-1+deb10u3, <=2:5.2.2.1+dfsg-1, <=2:6.0.3.7+dfsg-2, <=2:6.1.4.6+dfsg-2
redhat/rubygem-actionpack<0:6.1.7-1.el8
0:6.1.7-1.el8
redhat/rubygem-actionpack<7.0.2.4
7.0.2.4
redhat/rubygem-actionpack<6.1.5.1
6.1.5.1
redhat/rubygem-actionpack<6.0.4.8
6.0.4.8
redhat/rubygem-actionpack<5.2.7.1
5.2.7.1
rubyonrails Actionpack Ruby>=5.2.0<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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/rails to 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
  2. Upgrade

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

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

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

    Fixed in 7.0.2.4
  4. Upgrade

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

    Fixed in 6.1.5.1
  5. Upgrade

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

    Fixed in 6.0.4.8
  6. Upgrade

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

    Fixed in 5.2.7.1

Event History

Apr 27, 2022
CVE Published
12:00 AM
Apr 29, 2022
Data Sourced
via Red Hat·12:57 PM
DescriptionSeverityAffected Software
May 26, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-22577?

CVE-2022-22577 is an XSS vulnerability in Action Pack versions greater than or equal to 5.2.0 and less than 5.2.0, which could allow an attacker to bypass CSP headers and perform a cross-site scripting attack.

2

How severe is CVE-2022-22577?

CVE-2022-22577 has a severity level of 7.5 (high).

3

Which software versions are affected by CVE-2022-22577?

Action Pack versions 5.2.0 to 5.2.7.1, 6.0.0 to 6.0.4.8, 6.1.0 to 6.1.5.1, and 7.0.0 to 7.0.2.4 are affected by CVE-2022-22577.

4

How can I fix CVE-2022-22577?

To fix CVE-2022-22577, upgrade to Action Pack version 5.2.7.1, 6.0.4.8, 6.1.5.1, or 7.0.2.4, depending on your current version.

5

Where can I find more information about CVE-2022-22577?

You can find more information about CVE-2022-22577 in the Ruby Advisory Database, Red Hat Bugzilla, and Red Hat Errata.

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