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

Medium 6.1 Published Updated

Cross-site scripting vulnerability in MediaWiki allows attackers to inject malicious scripts via insecurely handled message text in log filters.

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-25815?

CVE-2020-25815 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

An issue was discovered in MediaWiki 1.32.x through 1.34.x before 1.34.4. LogEventList::getFiltersDesc is insecurely using message text to build options names for an HTML multi-select field. The relevant code should use escaped() instead of text().

Weakness: CWE-79

Which versions are affected by CVE-2020-25815?

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

PackageAffectedFixed in
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
mediawiki BitnamiFrom 1.32.01.34.4

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2020-25815?

Upgrade mediawiki/core to a fixed version for your release line: 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-25815 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2020-25815, DEBIAN-CVE-2020-25815, GHSA-2f58-vf6g-6p8x, UBUNTU-CVE-2020-25815.

Is CVE-2020-25815 in your software?

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

Check your SBOMs for free