First published: Sat Jul 02 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().
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
debian/mediawiki | <=1:1.31.16-1+deb10u2 | 1:1.31.16-1+deb10u6 1:1.35.11-1~deb11u1 1:1.35.13-1~deb11u1 1:1.39.4-1~deb12u1 1:1.39.5-1~deb12u1 1:1.39.5-1 |
MediaWiki MediaWiki | <1.35.7 | |
MediaWiki MediaWiki | >=1.36.0<1.37.3 | |
MediaWiki MediaWiki | =1.38.0 | |
MediaWiki MediaWiki | =1.38.0-rc0 | |
MediaWiki MediaWiki | =1.38.0-rc1 | |
Fedoraproject Fedora | =36 | |
Fedoraproject Fedora | =37 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of CVE-2022-34911 is medium with a severity value of 6.1.
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.
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.
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.
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/)