CVE-2020-5267Rubyonrails Actionview
Medium 4.8
Follow: this CVE · Rubyonrails · Rubyonrails Actionview We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 3.1
- 4.8
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- Yes
- Published
- Mar 19, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
What happens
In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.
What to do
- Apply the vendor's security update for Actionview.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionview |
< 5.2.4.2 |
5.2.4.2 |
gem "actionview", ">= 5.2.4.2" |
| RubyGems | actionview |
≥ 6.0.0 < 6.0.2.2 |
6.0.2.2 |
gem "actionview", ">= 6.0.2.2" |
Per OSV / GitHub Advisories (GHSA-65cv-r6x7-79hv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | actionview | < 5.2.4.2 |
| rubyonrails | actionview | ≥ 6.0.0 < 6.0.2.2 |
| debian | debian_linux | 8.0 |
| fedoraproject | fedora | 33 |
| opensuse | leap | 15.1 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- www.openwall.com Exploit Mailing List Patch
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org