What’s Vulnerable › Vulnerabilities
CVE-2022-22577: Cross-site Scripting Vulnerability in Action Pack
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-05-26 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- Debian Linux: 10.0
- rails actionpack: from 5.2.0 before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4 — fixed in 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4
- Rubygems Actionpack: from 5.2.0 before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4; 5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1, 5.2.2, 5.2.2.1 (+64) — fixed in 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4
How to fix
Upgrade to a fixed version: rails actionpack 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4; Rubygems Actionpack 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4. Check the vendor advisory for mitigations.
References
- https://discuss.rubyonrails.org/t/cve-2022-22577-possible-xss-vulnerability-in-action-pack/80533
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- https://security.netapp.com/advisory/ntap-20221118-0002/
- https://www.debian.org/security/2023/dsa-5372
- https://discuss.rubyonrails.org/t/cve-2022-22577-possible-xss-vulnerability-in-action-pack/80533
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
- https://security.netapp.com/advisory/ntap-20221118-0002/
- https://www.debian.org/security/2023/dsa-5372
Get alerted when CVE-2022-22577 or the next vulnerability affects your stack