CVE-2020-35478 Cross-site scripting in n/a
An attacker can inject malicious scripts via the blank namespace in MediaWiki, potentially executing code in victim browsers.
- 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-35478?
CVE-2020-35478 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 18 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
MediaWiki before 1.35.1 allows XSS via BlockLogFormatter.php. MediaWiki:blanknamespace potentially can be output as raw HTML with SCRIPT tags via LogFormatter::makePageLink(). This affects MediaWiki 1.33.0 and later.
Weakness: CWE-79
Which versions are affected by CVE-2020-35478?
1 open source package ship an affected version, including mediawiki. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mediawiki Bitnami | From 1.33.0 | 1.35.1 |
Products include Fedoraproject Fedora, Mediawiki Mediawiki.
How do I fix CVE-2020-35478?
Upgrade mediawiki to 1.35.1 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-35478 being exploited?
There is no known exploitation of CVE-2020-35478 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-mediawiki-2020-35478, DEBIAN-CVE-2020-35478, GHSA-xcc7-h9w8-fh42, UBUNTU-CVE-2020-35478.