CVE-2022-34911: XSS
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
Event History
Frequently Asked Questions
What is the severity of CVE-2022-34911?
The severity of CVE-2022-34911 is medium with a severity value of 6.1.
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.
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.
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.
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/)