CVE-2022-27777
XSS Vulnerability in Action View tag helpers
Summary
Remediation
Upgrade to the fixed version using your package manager.
gem install actionview -v 5.2.7.1
gem install actionview -v 7.0.2.4
gem install actionview -v 6.0.4.8
gem install actionview -v 6.1.5.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| actionview | rubygems | 4.1.0, 4.1.0.beta1, 4.1.0.beta2, 4.1.0.rc1 (+148 more) | 5.2.7.1 |
| actionview | rubygems | 7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+2 more) | 7.0.2.4 |
| actionview | rubygems | 6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+21 more) | 6.0.4.8 |
| actionview | rubygems | 6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+12 more) | 6.1.5.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-27777ADVISORY
- https://github.com/rails/rails/commit/649516ce0feb699ae06a8c5e81df75d460cc9a85WEB
- https://discuss.rubyonrails.org/t/cve-2022-27777-possible-xss-vulnerability-in-action-view-tag-helpers/80534WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2022-27777.ymlWEB
- https://groups.google.com/g/ruby-security-ann/c/9wJPEDv-iRwWEB
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.htmlWEB
- https://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-releasedWEB
- https://www.debian.org/security/2023/dsa-5372WEB
Frequently Asked Questions
- What is CVE-2022-27777?
- XSS Vulnerability in Action View tag helpers This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2022-27777?
- CVE-2022-27777 affects actionview. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-27777 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2020-8163HIGH
Remote code execution via user-provided local names in ActionView
- CVE-2019-5419HIGH
Denial of Service Vulnerability in Action View
- CVE-2016-0752HIGH
Directory traversal vulnerability in Action View in Ruby on Rails
- CVE-2026-61807MEDIUM
Snipe-IT: Stored DOM XSS via table selected-count IDs
- CVE-2016-6316MEDIUM
actionview Cross-site Scripting vulnerability
- CVE-2016-2097MEDIUM
actionview contains Path Traversal vulnerability
- CVE-2023-23913MEDIUM
rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements
- CVE-2026-33168LOW
Rails has a possible XSS vulnerability in its Action View tag helpers
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies