What’s Vulnerable › Vulnerabilities
CVE-2020-5267: Possible XSS vulnerability in ActionView
- Severity: medium (CVSS 4.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-03-19 · updated 2026-06-17
- Weakness: CWE-80
Description
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.
Affected products
- Debian Linux: 8.0
- Fedoraproject Fedora: 33
- openSUSE Leap: 15.1
- rails actionview: before 5.2.4.2; from 6.0.0 before 6.0.2.2 — fixed in 5.2.4.2, 6.0.2.2
- Rubygems Actionview: before 5.2.4.2; from 6.0.0 before 6.0.2.2; 4.1.0, 4.1.0.beta1, 4.1.0.beta2, 4.1.0.rc1, 4.1.0.rc2, 4.1.1 (+142) — fixed in 5.2.4.2, 6.0.2.2
How to fix
Upgrade to a fixed version: rails actionview 5.2.4.2, 6.0.2.2; Rubygems Actionview 5.2.4.2, 6.0.2.2. Check the vendor advisory for mitigations.
References
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html
- http://www.openwall.com/lists/oss-security/2020/03/19/1
- https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a
- https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv
- https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html
- http://www.openwall.com/lists/oss-security/2020/03/19/1
- https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a
- https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv
- https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/
Get alerted when CVE-2020-5267 or the next vulnerability affects your stack