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

Medium 6.1 Published Updated

An attacker can inject raw HTML via wiki page definitions, leading to cross-site scripting attacks against MediaWiki users.

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

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

In MediaWiki before 1.35.1, the combination of Html::rawElement and Message::text leads to XSS because the definition of MediaWiki:recentchanges-legend-watchlistexpiry can be changed onwiki so that the output is raw HTML.

Weakness: CWE-79

Which versions are affected by CVE-2020-35474?

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

PackageAffectedFixed in
mediawiki BitnamiAll versions1.35.1

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2020-35474?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2020-35474, DEBIAN-CVE-2020-35474, GHSA-xprx-5rcx-fjcv, UBUNTU-CVE-2020-35474.

Is CVE-2020-35474 in your software?

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

Check your SBOMs for free