CVE-2024-34500 MediaWiki UnlinkedWikibase Cross-site Scripting vulnerability

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts via unescaped error messages in the UnlinkedWikibase extension, requiring an upgrade to patched versions.

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-2024-34500?

CVE-2024-34500 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 5 May 2024. 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 UnlinkedWikibase extension in MediaWiki before 1.39.6, 1.40.x before 1.40.2, and 1.41.x before 1.41.1. XSS can occur through an interface message. Error messages (in the $err var) are not escaped before being passed to Html::rawElement() in the getError() function in the Hooks class.

Weakness: CWE-79

Which versions are affected by CVE-2024-34500?

3 open source packages ship an affected version, including samwilson/unlinked-wikibase and mediawiki. It affects 2 products.

PackageAffectedFixed in
samwilson/unlinked-wikibase PackagistAll versions1.42.0
samwilson/unlinked-wikibase PackagistAll versions1.42.0
mediawiki BitnamiAll versions1.41.1

Products include Fedoraproject Fedora, Mediawiki Mediawiki.

How do I fix CVE-2024-34500?

Upgrade samwilson/unlinked-wikibase to 1.42.0 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-2024-34500 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-mediawiki-2024-34500, GHSA-wcx3-63mm-h8x6.

Is CVE-2024-34500 in your software?

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

Check your SBOMs for free