Bug 1831528 (CVE-2020-5267)

Summary: CVE-2020-5267 rubygem-actionview: views that use the `j` or `escape_javascript` methods are susceptible to XSS attacks
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akarol, bbuckingham, bcourt, bkearney, bmidwood, btotty, dmetzger, gmccullo, gtanzill, hhorak, hhudgeon, jaruga, jfrey, jhardy, jorton, lavenel, lzap, mmccune, nmoumoul, obarenbo, pvalena, rchan, rjerrido, roliveri, ruby-maint, ruby-packagers-sig, simaishi, smallamp, sokeeffe, strzibny
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-actionview 6.0.2.2, rubygem-actionview 5.2.4.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-actionview. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks with ActionView's JavaScript literal escape helpers. The highest threat from this vulnerability is to data confidentiality and integrity.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 14:21:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1831529, 1831531, 1831583, 1831584, 1831599    
Bug Blocks: 1831532    

Description Marian Rehak 2020-05-05 07:20:39 UTC
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.

External Reference:

https://www.openwall.com/lists/oss-security/2020/03/19/1

Comment 1 Marian Rehak 2020-05-05 07:24:47 UTC
Created rubygem-actionview tracking bugs for this issue:

Affects: fedora-all [bug 1831531]

Comment 6 Yadnyawalk Tale 2020-05-05 11:00:06 UTC
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.

Comment 8 errata-xmlrpc 2020-10-27 12:56:37 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.7 for RHEL 8

Via RHSA-2020:4366 https://access.redhat.com/errata/RHSA-2020:4366

Comment 9 Product Security DevOps Team 2020-10-27 14:21:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-5267