CVE-2022-27777Rubyonrails Actionpack
Medium 6.1 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Actionpack We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- May 26, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Actionpack.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionview |
< 5.2.7.1 |
5.2.7.1 |
gem "actionview", ">= 5.2.7.1" |
| RubyGems | actionview |
≥ 6.0.0 < 6.0.4.8 |
6.0.4.8 |
gem "actionview", ">= 6.0.4.8" |
| RubyGems | actionview |
≥ 6.1.0 < 6.1.5.1 |
6.1.5.1 |
gem "actionview", ">= 6.1.5.1" |
| RubyGems | actionview |
≥ 7.0.0 < 7.0.2.4 |
7.0.2.4 |
gem "actionview", ">= 7.0.2.4" |
Per OSV / GitHub Advisories (GHSA-ch3h-j2vf-95pv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | actionpack | < 5.2.7.1 |
| rubyonrails | actionpack | ≥ 6.0.0 < 6.0.4.8 |
| rubyonrails | actionpack | ≥ 6.1.0 < 6.1.5.1 |
| rubyonrails | actionpack | ≥ 7.0.0 < 7.0.2.4 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.rubyonrails.org Exploit Patch Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory
- www.debian.org