CVE-2020-25814 MediaWiki Cross-site Scripting (XSS) vulnerability

Medium 6.1 Published Updated

An attacker can inject malicious JavaScript via MediaWiki messages that executes when clicked, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-25814?

CVE-2020-25814 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 27 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2020-25814?

7 open source packages ship an affected version, including mediawiki/core and mediawiki. It affects 2 products.

PackageAffectedFixed in
mediawiki/core PackagistFrom 1.31.01.31.9
mediawiki/core PackagistFrom 1.31.01.31.9
mediawiki/core PackagistFrom 1.32.01.34.3
mediawiki/core PackagistFrom 1.32.01.34.3
mediawiki/core PackagistFrom 1.35.0-rc.01.35.0
mediawiki/core PackagistFrom 1.35.0-rc.01.35.0
1 more packages
mediawiki BitnamiAll versions1.31.10, 1.34.4

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2020-25814?

Upgrade mediawiki/core to a fixed version for your release line: 1.31.9, 1.34.3 or 1.35.0.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-25814 being exploited?

There is no known exploitation of CVE-2020-25814 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2020-25814, DEBIAN-CVE-2020-25814, GHSA-4vr7-m8p8-434h, UBUNTU-CVE-2020-25814.

Is CVE-2020-25814 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free