CVE-2023-37302 MediaWiki Cross-site Scripting vulnerability

Medium 6.1 Published Updated

Cross-site scripting vulnerability in MediaWiki Wikibase allows attackers to inject malicious scripts via crafted badge titles, potentially leading to session hijacking or code execution.

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-2023-37302?

CVE-2023-37302 is a medium-severity cross-site scripting vulnerability in Mediawiki Mediawiki, published on 30 Jun 2023. 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 SiteLinksView.php in Wikibase in MediaWiki through 1.39.3. There is XSS via a crafted badge title attribute. This is also related to lack of escaping in wbTemplate (from resources/wikibase/templates.js) for quotes (which can be in a title attribute).

Weakness: CWE-79

Which versions are affected by CVE-2023-37302?

3 open source packages ship an affected version, including mediawiki and wikibase/wikibase. It affects 1 product.

PackageAffectedFixed in
mediawiki BitnamiAll versions1.39.4
wikibase/wikibase PackagistAll versions to 1.39.3None
wikibase/wikibase PackagistAll versions to 1.39.3None

Products include Mediawiki Mediawiki.

How do I fix CVE-2023-37302?

Upgrade mediawiki to 1.39.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-2023-37302 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37302 exists.

All Mediawiki Mediawiki vulnerabilities

Sources

Also known as BIT-mediawiki-2023-37302, GHSA-fmrf-p77g-vv5c, UBUNTU-CVE-2023-37302.

Is CVE-2023-37302 in your software?

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

Check your SBOMs for free