CVE-2020-15169
rubygem-activeview: Cross-site scripting in translation helpers
Overview
Description
In Action View before versions 5.2.4.4 and 6.0.3.3 there is a potential Cross-Site Scripting (XSS) vulnerability in Action View's translation helpers. Views that allow the user to control the default (not found) value of the t and translate helpers could be susceptible to XSS attacks. When an HTML-unsafe string is passed as the default for a missing translation key named html or ending in _html, the default string is incorrectly marked as HTML-safe and not escaped. This is patched in versions 6.0.3.3 and 5.2.4.4. A workaround without upgrading is proposed in the source advisory.
Source: OX vulnerability database
Severity
6.1 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | actionview | <5.2.4.4>=6.0.0.0, <6.0.3.3 | 5.2.4.46.0.3.3~> 5.2.4, >= 5.2.4.4 |
Open a package to see all its vulnerabilities.
Operating systems · 416 fixes
Red Hat 2 releases · 405 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | cfme-amazon-smartstate +1 | wont fix | — |
| 7 | tfm-rubygem-kafo-wizards | 0:0.0.1-4.el7sat | RHSA-2021:1313 |
| 7 | tfm-rubygem-declarative | 0:0.0.10-1.el7sat | RHSA-2021:1313 |
| 7 | tfm-rubygem-hammer-cli-foreman-tasks | 0:0.0.15-1.el7sat | RHSA-2021:1313 |
| 7 | tfm-rubygem-smart-proxy-dhcp-infoblox | 0:0.0.16-4.el7sat | RHSA-2021:1313 |
| 7 | rh-postgresql12-postgresql-evr +1 | 0:0.0.2-1.el7sat | RHSA-2021:1313 |
400 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | ruby2-5-rubygem-actionview-5-1 | 5.1.4-150000.3.6.1 | SUSE-SU-2023:2059-1 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | rails | 2:5.2.2.1+dfsg-1+deb10u2 |
| 11 | rails | 2:6.0.3.3+dfsg-1 |
| 12 | rails | 2:6.0.3.3+dfsg-1 |
| 13 | rails | 2:6.0.3.3+dfsg-1 |
| 14 | rails | 2:6.0.3.3+dfsg-1 |
| 9 | rails | 2:4.2.7.1-1+deb9u4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.0.3.3+dfsg-1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | rmt-server +2 | 2.6.13-1.1 | openSUSE-SU-2024:10589-1 |
| Tumbleweed | ruby2-7-rubygem-actionview-5-2 +1 | 5.2.6-1.2 | openSUSE-SU-2024:11320-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-15169
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/e663f084460ea56c55c3dc76f78c7caeddeeb02e
- github.com https://github.com/rails/rails/security/advisories/GHSA-cfjv-5498-mph5
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2020-15169.yml
- groups.google.com https://groups.google.com/g/rubyonrails-security/c/b-C9kSGXYrc
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/10/msg00015.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
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-15169
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.