CVE-2022-27777 json
XSS Vulnerability in Action View tag helpers
published 2022-04-27 4 y ago modified 2026-06-17 4 mo ago also GHSA-ch3h-j2vf-95pv , EUVD-2022-1707
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems actionview 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-27777
- 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
- rubygem-actionview-5_1 SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +2 more 5.1.4-150000.3.6.1
- rubygem-actionview-4_2 OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 4.2.9-9.15.1
- rubygem-activesupport-4_2 OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 4.2.9-7.12.1
- rubygem-activesupport-5_1 SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +4 more 5.1.4-150000.3.9.1
suse advisories SUSE-SU-2023:2059-1SUSE-SU-2022:3860-1SUSE-SU-2022:3621-1
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-27777 updated cvss 7.5
tfm-rubygem-actionview: Possible cross-site scripting vulnerability in Action View tag helpers
-
Red Hat CloudForms Management Engine 5 actionviewaffected: no fix planned “Out of support scope”
-
Red Hat 3scale API Management Platform 2 actionviewaffected: no fix planned “Will not fix”
-
Red Hat Satellite 6.13 for RHEL 8 rubygem-actionview 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.67% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- discuss.rubyonrails.org https://discuss.rubyonrails.org/t/cve-2022-27777-possible-xss-vulnerability-in-action-view-tag-helpers/80534 referenced PoC, tagged "exploit" by a source, unverified
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 | actionview | <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-27777-possible-xss-vulnerability-in-action-view-tag-helpers/80534
web, exploit, patch, vendor-advisory
-
github.com
/rails/rails/commit/649516ce0feb699ae06a8c5e81df75d460cc9a85
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
-
nvd.nist.gov
/vuln/detail/CVE-2022-27777
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2022-27777.yml
web
-
groups.google.com
/g/ruby-security-ann/c/9wJPEDv-iRw
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
Sources
- CVE List CVE-2022-27777
- GitHub Advisory GHSA-ch3h-j2vf-95pv
- NVD CVE-2022-27777
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.