CVE-2020-26120 Cross-site scripting in n/a

Medium 6.1 Published Updated

An attacker can execute arbitrary JavaScript in a victim's browser via crafted HTML in the MobileFrontend extension for MediaWiki.

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

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

XSS exists in the MobileFrontend extension for MediaWiki before 1.34.4 because section.line is mishandled during regex section line replacement from PageGateway. Using crafted HTML, an attacker can elicit an XSS attack via jQuery's parseHTML method, which can cause image callbacks to fire even without the element being appended to the DOM.

Weakness: CWE-79

Which versions are affected by CVE-2020-26120?

1 open source package ship an affected version, including mediawiki. It affects 2 products.

PackageAffectedFixed in
mediawiki BitnamiAll versions1.34.4

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2020-26120?

Upgrade mediawiki to 1.34.4 or later.

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-26120 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2020-26120, GHSA-h2mq-xrr7-hwv8.

Is CVE-2020-26120 in your software?

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

Check your SBOMs for free