cve.bz

CVE-2020-5267 Cross-site Scripting

4.8 mediumExploit referenceEPSS 1.5%Fix available

Medium (4.8). EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in actionview 5.2.4.2, 6.0.2.2.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-5267 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5267?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5267?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-5267 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:actionviewbefore 5.2.4.2
rubyonrails:actionviewfrom 6.0.0 before 6.0.2.2
debian:debian_linux8.0
fedoraproject:fedora33
opensuse:leap15.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-65cv-r6x7-79hvRubyGemsactionview<5.2.4.25.2.4.2
GHSA-65cv-r6x7-79hvRubyGemsactionview>=6.0.0 <6.0.2.26.0.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8rails2:4.1.8-1+deb8u6DLA-2149-1
Debian12, 13, 14rails2:5.2.4.1+dfsg-2DEBIAN-CVE-2020-5267
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSrailsno fix listedUBUNTU-CVE-2020-5267
Red Hatsatellite:6.8::el7createrepo_c, createrepo_c-libs, createrepo_c-debuginfo and 1 more0:0.7.4-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7keycloak-httpd-client-install, python2-keycloak-httpd-client-install0:1.2.2-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7pcp-mmvstatsd0:0.4-2.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7python-idna-ssl, python3-idna-ssl0:1.1.0-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-prometheus-client, python3-prometheus-client0:0.7.1-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-receptor-satellite, python3-receptor-satellite0:1.2.0-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7python-six, python3-six0:1.11.0-8.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-yarl, python3-yarl, python-yarl-debuginfo0:1.4.2-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7qpid-cpp, qpid-qmf, qpid-tools and 6 more0:1.36.0-28.el7amqRHSA-2020:4366
Red Hatsatellite:6.8::el7receptor0:0.6.3-1.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7rhel8-kickstart-setup, rh-postgresql12-postgresql-evr0:0.0.2-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7rubygem-fast_gettext, tfm-rubygem-rack-test0:1.1.0-4.el7satRHSA-2020:4366
188 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1rubygem-actionview-5_15.1.4-3.3.1SUSE-SU-2020:1178-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morermt-server2.6.5-3.34.1SUSE-SU-2020:3147-1
SUSELinux Enterprise Module for Public Cloud 15 SP1, Linux Enterprise Module for Server Applications 15 SP1rmt-server2.6.5-3.18.1SUSE-SU-2020:3160-1
SUSELinux Enterprise Module for Public Cloud 15 SP2, Linux Enterprise Module for Server Applications 15 SP2rmt-server2.6.5-3.3.1SUSE-SU-2020:3036-1
SUSEOpenStack Cloud 7, OpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9rubygem-actionview-4_24.2.9-9.6.1SUSE-SU-2020:0954-1
openSUSELeap 15.1rmt-server2.6.5-lp151.2.18.2openSUSE-SU-2020:2000-1
openSUSELeap 15.1rubygem-actionview-5_15.1.4-lp151.3.3.1openSUSE-SU-2020:0627-1
openSUSELeap 15.2rmt-server2.6.5-lp152.2.3.1openSUSE-SU-2020:1993-1
openSUSETumbleweedrubygem-actionview-6.06.0.4.4-1.1openSUSE-SU-2024:11823-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CloudForms and Satellite ship affected RubyGem actionview with methods, however, those are not vulnerable since none of those uses template string enclosed with backtick characters. A future update may fix affected RubyGem.

ProductPackageStateAdvisory
Red Hat Satellite 6.8 for RHEL 7ansible-collection-redhat-satellite-0:1.3.0-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-foreman_scap_client-0:0.0.5-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-insights-client-0:1.7.1-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-satellite-receptor-installer-0:0.6.13-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansible-runner-0:1.4.6-1.el7arFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7candlepin-0:3.1.21-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7createrepo_c-0:0.7.4-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-0:2.1.2.19-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-bootloaders-redhat-0:202005201200-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-discovery-image-0:3.6.7-1Fixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-discovery-image-service-0:1.0.0-3.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-installer-1:2.1.2.8-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-proxy-0:2.1.2-2.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-selinux-0:2.1.2.3-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7future-0:0.16.0-11.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7gofer-0:2.12.5-7.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7hfsplus-tools-0:332.14-12.el7Fixed 2020-10-27RHSA-2020:4366
CloudForms Management Engine 5cfme-amazon-smartstateWill not fix
CloudForms Management Engine 5cfme-gemsetWill not fix
Red Hat Software Collectionsrh-ror50-rubygem-actionviewWill not fix
362 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-5267.

Attack patterns (CAPEC)

  • CAPEC-18 XSS Targeting Non-Script Elements Likelihood: High · Severity: Very High
  • CAPEC-32 XSS Through HTTP Query Strings Likelihood: High · Severity: High
  • CAPEC-86 XSS Through HTTP Headers Likelihood: High · Severity: Very High
  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON