CVE-2022-34911: XSS

Published Jul 2, 2022
·
Updated

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().

Affected Software

8 affected componentsFixes available
debian/mediawiki<=1:1.31.16-1+deb10u2
1:1.31.16-1+deb10u61:1.35.11-1~deb11u11:1.35.13-1~deb11u11:1.39.4-1~deb12u11:1.39.5-1~deb12u11:1.39.5-1
MediaWiki<1.35.7
MediaWiki>=1.36.0<1.37.3
MediaWiki=1.38.0
MediaWiki=1.38.0-rc0
MediaWiki=1.38.0-rc1
fedoraproject fedora=36
fedoraproject fedora=37

Event History

Jul 2, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-34911?

The severity of CVE-2022-34911 is medium with a severity value of 6.1.

2

How does XSS occur in CVE-2022-34911?

XSS can occur in configurations that allow a JavaScript payload in a username, specifically when it sets the page title to "Welcome" followed by the username.

3

Which versions of MediaWiki are affected by CVE-2022-34911?

MediaWiki versions before 1.35.7, 1.36.x before 1.37.3, and 1.38.x before 1.38.1 are affected by CVE-2022-34911.

4

How can I fix CVE-2022-34911 in MediaWiki?

To fix CVE-2022-34911 in MediaWiki, you should upgrade to version 1.35.7, 1.37.3, or 1.38.1 depending on your current version.

5

Where can I find more information about CVE-2022-34911?

You can find more information about CVE-2022-34911 on the following references: [Reference 1](https://phabricator.wikimedia.org/T308471), [Reference 2](https://gerrit.wikimedia.org/r/c/mediawiki/core/+/805208), [Reference 3](https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/PIPYDRSHXOYW5DB7X755QDNUV5EZWPWB/)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203