Bug 1903774 (CVE-2020-25814)

Summary: CVE-2020-25814 mediawiki: XSS via javascript:payload
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, axel.thimm, bmontgom, eparis, jburrell, jokerman, mike, nstielau, puiterwijk, shurley, sponnaga
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: mediawiki-1.34.4, mediawiki-1.31.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 08:36:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1903775, 1905140    
Bug Blocks: 1903781    

Description Dhananjay Arunesh 2020-12-02 18:35:30 UTC
In MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4, XSS related to jQuery can occur. The attacker creates a message with [javascript:payload xss] and turns it into a jQuery object with mw.message().parse(). The expected result is that the jQuery object does not contain an <a> tag (or it does not have a href attribute, or it's empty, etc.). The actual result is that the object contains an <a href ="javascript... that executes when clicked.


Comment 1 Dhananjay Arunesh 2020-12-02 18:35:52 UTC
Created mediawiki tracking bugs for this issue:

Affects: fedora-all [bug 1903775]

Comment 2 Przemyslaw Roguski 2020-12-07 16:32:42 UTC
Upstream commit:

Comment 3 Przemyslaw Roguski 2020-12-07 16:32:44 UTC

The mediawiki package was removed from OpenShift Container Platform in version 4.3.

Comment 4 Przemyslaw Roguski 2020-12-07 16:32:47 UTC
External References: