Bug 1536921 (CVE-2018-5773)

Summary: CVE-2018-5773 python-markdown2: Unsanitized input in markdown() method allows for cross-site scripting (XSS)
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: thomas.moschny
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:37:46 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: 1536922, 1536923    
Bug Blocks: 1536925    

Description Sam Fowler 2018-01-22 03:28:44 UTC
An issue was discovered in markdown2 (aka python-markdown2) through 2.3.5. The safe_mode feature, which is supposed to sanitize user input against XSS, is flawed and does not escape the input properly. With a crafted payload, XSS can be triggered, as demonstrated by omitting the final '>' character from an IMG tag.

External References:
https://nvd.nist.gov/vuln/detail/CVE-2018-5773

Upstream Issue:
https://github.com/trentm/python-markdown2/issues/285

Comment 1 Sam Fowler 2018-01-22 03:29:16 UTC
Created python-markdown2 tracking bugs for this issue:

Affects: epel-all [bug 1536922]
Affects: fedora-all [bug 1536923]

Comment 2 Product Security DevOps Team 2019-06-08 03:37:46 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.