CVE-2022-22577 json
Cross-site Scripting Vulnerability in Action Pack
published 2022-04-27 4 y ago modified 2026-06-17 4 mo ago also GHSA-mm33-5vfq-3mm3 , EUVD-2022-1786
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems actionpack 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4
- rubyonrails actionpack 5.2.7.1, 6.0.4.8, 6.1.5.1, 7.0.2.4
- rails Debian 14, Debian 13, Debian 12 2:6.1.6.1+dfsg-1
debian advisories DEBIAN-CVE-2022-22577
- cjson satellite capsule 6.13, satellite 6.13 1.7.14-5.el8sat
- foreman satellite utils 6.13, satellite capsule 6.13, satellite 6.13 3.5.1.14-1.el8sat
- katello satellite capsule 6.13, satellite 6.13 4.7.0-1.el8sat
- libsolv satellite capsule 6.13, satellite 6.13 0.7.22-4.el8pc
- libcomps satellite capsule 6.13, satellite 6.13 0.1.18-4.el8pc
- qpid-cpp satellite capsule 6.13, satellite 6.13 1.39.0-7.el8amq
- qpid-qmf satellite capsule 6.13, satellite 6.13 1.39.0-7.el8amq
- candlepin satellite 6.13 4.2.13-1.el8sat
red hat advisories RHSA-2023:2097
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-22577 updated cvss 7.5
rubygem-actionpack: Possible cross-site scripting vulnerability in Action Pack
-
Red Hat CloudForms Management Engine 5 actionpackaffected: no fix planned “Out of support scope”
-
Red Hat 3scale API Management Platform 2 actionpackaffected: no fix planned “Will not fix”
-
Red Hat Satellite 6.13 for RHEL 8 rubygem-actionpack 6.1.7-1.el8satfixed: vendor fix RHSA-2023:2097
-
Red Hat Satellite 6.13 for RHEL 8 cjson 1.7.14-5.el8sat, katello 4.7.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, python-pbr 5.8.0-4.el8pc, +670 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.83% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=5.2.0, <5.2.7.1 >=6.0.0, <6.0.4.8 >=6.1.0, <6.1.5.1 >=7.0.0, <7.0.2.4 |
5.2.7.1 6.0.4.8 6.1.5.1 7.0.2.4 |
Affected products
- n/a https://github.com/rails/rails
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
discuss.rubyonrails.org
/t/cve-2022-22577-possible-xss-vulnerability-in-action-pack/80533
web, patch, vendor-advisory
-
github.com
/rails/rails/pull/44635
web
-
github.com
/rails/rails/commit/2b820a2a69fa50cffa74b4aedc57bf92ed6910ec
web
-
github.com
/rails/rails/commit/5299b57d596ea274f77f5ffee2b79c6ee0255508
web
-
github.com
/rails/rails/commit/8198d7c4accad0b6ba956b9d59528534a289866b
web
-
github.com
/rails/rails/commit/d2253115ac2b30f5f7210670af906cebf79cf809
web
-
debian.org
/security/2023/dsa-5372
vendor-advisory, web
-
lists.debian.org
/debian-lts-announce/2022/09/msg00002.html
mailing-list, web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20221118-0002/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-22577
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml
web
-
groups.google.com
/g/ruby-security-ann/c/NuFRKaN5swI
web
-
rubyonrails.org
/2022/4/26/Rails-7-0-2-4-6-1-5-1-6-0-4-8-and-5-2-7-1-have-been-released
web
-
security.netapp.com
/advisory/ntap-20221118-0002
web
Sources
- CVE List CVE-2022-22577
- GitHub Advisory GHSA-mm33-5vfq-3mm3
- NVD CVE-2022-22577
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.