XSS in MediaWiki
CVE-2022-34911
An issue was discovered in MediaWiki before 1.35.7, 1.36.x and 1.37.x before 1.37.3, and 1.38.x before 1.38.1. XSS can occur in configurations that allow a JavaScript payload in a username. After account creation, when it sets the page title to "Welcome" followed by the username, the username is not escaped: SpecialCreateAccount::successfulAction() calls ::showSuccessPage() with a message as second parameter, and OutputPage::setPageTitle() uses text().
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.011, 66.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- MediaWiki — versions 1.38.0
- Fedoraproject Fedora — versions 36, 37
Weakness classification (CWE)
References
- phabricator.wikimedia.org/T308471 (Issue Tracking, Vendor Advisory)
- FEDORA-2022-f83aec6d57 (vendor-advisory)
- FEDORA-2022-bca2c95559 (vendor-advisory)
- [debian-lts-announce] 20220922 [SECURITY] [DLA 3117-1] mediawiki security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-5246 (vendor-advisory, Third Party Advisory)
- GLSA-202305-24 (vendor-advisory)