CVE-2020-5267
rubygem-actionview: views that use the `j` or `escape_javascript` methods are susceptible to XSS attacks
Overview
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.
Source: OX vulnerability database
Severity
4.8 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-80, CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | actionview | <5.2.4.2>=6.0.0, <6.0.2.2 | 5.2.4.26.0.2.2~> 5.2.4, >= 5.2.4.2 |
Open a package to see all its vulnerabilities.
Operating systems · 352 fixes
Red Hat 2 releases · 342 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | cfme-amazon-smartstate +1 | wont fix | — |
| 7 | rh-ror50-rubygem-actionview +1 | wont fix | — |
| 7 | tfm-rubygem-kafo-wizards | 0:0.0.1-4.el7sat | RHSA-2020:4366 |
| 7 | tfm-rubygem-declarative | 0:0.0.10-1.el7sat | RHSA-2020:4366 |
| 7 | tfm-rubygem-hammer-cli-foreman-tasks | 0:0.0.14-1.el7sat | RHSA-2020:4366 |
| 7 | tfm-rubygem-smart-proxy-dhcp-infoblox | 0:0.0.16-3.el7sat | RHSA-2020:4366 |
337 more rows
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | rails | 2:5.2.2.1+dfsg-1+deb10u1 |
| 11 | rails | 2:5.2.4.1+dfsg-2 |
| 12 | rails | 2:5.2.4.1+dfsg-2 |
| 13 | rails | 2:5.2.4.1+dfsg-2 |
| 14 | rails | 2:5.2.4.1+dfsg-2 |
| 9 | rails | 2:4.2.7.1-1+deb9u2 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:5.2.4.1+dfsg-2 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ruby2-7-rubygem-actionview-6-0 +1 | 6.0.4-1.2 | openSUSE-SU-2024:11321-1 |
| Tumbleweed | ruby3-1-rubygem-actionview-6-0 | 6.0.4.4-1.1 | openSUSE-SU-2024:11823-1 |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html
- www.openwall.com http://www.openwall.com/lists/oss-security/2020/03/19/1
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-5267
- github.com https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a
- github.com https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2020-5267.yml
- groups.google.com https://groups.google.com/forum/#!topic/rubyonrails-security/55reWMM_Pg8
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.