Bug 1915370 (CVE-2020-26298)

Summary: CVE-2020-26298 rubygem-redcarpet: does not escape HTML when processing quotes which could result in XSS vulnerability
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amasferr, brandfbb, chazlett, jjoyce, jschluet, lhh, lpeer, mburns, mhicks, rhel8-maint, sclewis, slinaber
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-redcarpet 3.5.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1915372, 1915371, 1915373, 1915374    
Bug Blocks: 1915375    

Description Michael Kaplan 2021-01-12 14:23:18 UTC
Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.

External References:

https://github.com/advisories/GHSA-q3wr-qw3g-3p4h
https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security
https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793
https://rubygems.org/gems/redcarpet

Comment 1 Michael Kaplan 2021-01-12 14:23:49 UTC
Created rubygem-redcarpet tracking bugs for this issue:

Affects: epel-all [bug 1915372]
Affects: fedora-all [bug 1915371]
Affects: openstack-rdo [bug 1915373]