GitHub Advisory Database
GHSA-wcx3-63mm-h8x6
MediaWiki UnlinkedWikibase Cross-site Scripting vulnerability
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | samwilson/unlinked-wikibase | All versions before 1.42.0 (fixed in 1.42.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34500
- https://github.com/github/advisory-database/pull/5310
- https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UnlinkedWikibase/+/1002175
- https://gerrit.wikimedia.org/r/mediawiki/extensions/UnlinkedWikibase.git
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FU2FGUXXK6TMV6R52VRECLC6XCSQQISY
- https://phabricator.wikimedia.org/T357203