CVE-2024-34500: MediaWiki UnlinkedWikibase Cross-site Scripting vulnerability
An issue was discovered in the UnlinkedWikibase extension in MediaWiki before 1.42.0. 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.
Published May 5, 2024 · Updated Nov 4, 2025
Affected packages
samwilson/unlinked-wikibase
- Ecosystem
- Composer (PHP)
- Affected
- < 1.42.0
- Fixed in
- 1.42.0
- Check
composer show samwilson/unlinked-wikibase
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in the UnlinkedWikibase extension in MediaWiki before 1.42.0. 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.
Credited to R4356th.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34500
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UnlinkedWikibase/+/1002175
- https://phabricator.wikimedia.org/T357203
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY
- https://github.com/github/advisory-database/pull/5310
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY
- https://github.com/advisories/GHSA-wcx3-63mm-h8x6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
