CVE-2021-42047 Cross-site scripting in n/a

Medium 5.4 Published Updated

Attackers can execute arbitrary JavaScript via XSS in the Mentor Dashboard feature of the MediaWiki Growth extension.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-42047?

CVE-2021-42047 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 6 Oct 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in the Growth extension in MediaWiki through 1.36.2. On any Wiki with the Mentor Dashboard feature enabled, users can login with a mentor account and trigger an XSS payload (such as alert) via Growthexperiments-mentor-dashboard-mentee-overview-no-js-fallback.

Weakness: CWE-79

Which versions are affected by CVE-2021-42047?

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

PackageAffectedFixed in
mediawiki BitnamiAll versions1.36.3

Products include Mediawiki Mediawiki.

How do I fix CVE-2021-42047?

Upgrade mediawiki to 1.36.3 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-2021-42047 being exploited?

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

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as BIT-mediawiki-2021-42047, GHSA-jv3v-92mq-gg3j.

Is CVE-2021-42047 in your software?

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

Check your SBOMs for free