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

Medium 6.1 Published Updated

Cross-site scripting vulnerability in the GlobalUsage extension for MediaWiki allows attackers to inject malicious scripts via unescaped page variables.

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

CVE-2020-35622 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 21 Dec 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 the GlobalUsage extension for MediaWiki through 1.35.1. SpecialGlobalUsage.php calls WikiMap::makeForeignLink unsafely. The $page variable within the formatItem function was not being properly escaped, allowing for XSS under certain conditions.

Weakness: CWE-79

Which versions are affected by CVE-2020-35622?

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

PackageAffectedFixed in
mediawiki BitnamiAll versions1.35.2

Products include Mediawiki Mediawiki.

How do I fix CVE-2020-35622?

Upgrade mediawiki to 1.35.2 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-35622 being exploited?

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

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as BIT-mediawiki-2020-35622, GHSA-p7rw-422j-w7qg.

Is CVE-2020-35622 in your software?

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

Check your SBOMs for free