CWE
79
Advisory Published
Updated

CVE-2022-34911: XSS

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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/)

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203