{"id":"CVE-2022-34911","details":"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().","aliases":["BIT-mediawiki-2022-34911"],"modified":"2026-07-11T03:55:01.332102380Z","published":"2022-07-02T00:00:00Z","database_specific":{"unresolved_ranges":[{"source":"DESCRIPTION","extracted_events":[{"fixed":"1.35.7"},{"introduced":"1.37.x"},{"fixed":"1.37.3"},{"introduced":"1.38.x"},{"fixed":"1.38.1"}]}],"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34911.json"},"references":[{"type":"WEB","url":"https://phabricator.wikimedia.org/T308471"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34911.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7N5ZBWLNNPZKFK7Q4KEHGCJ2YELQEUJP/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKKOQXPYLMBSEVDHFS32BPBR3ZQJKY5B/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-34911"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202305-24"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5246"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00027.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wikimedia/mediawiki","events":[{"introduced":"0"},{"fixed":"03021aff27a3047a2b5c6aec0d95966a07bd2583"},{"introduced":"bc542ec6d8573dfb906b468901799e0017875f1e"},{"fixed":"1d62ca6ec30099e7e9d6c554693a4b8e88e91139"},{"introduced":"09fc2a4ea5c1d57779dea6526f0d4487cd950217"}],"database_specific":{"cpe":["cpe:2.3:a:mediawiki:mediawiki:*:*:*:*:*:*:*:*","cpe:2.3:a:mediawiki:mediawiki:1.38.0:-:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"1.35.7"},{"introduced":"1.36.0"},{"fixed":"1.37.3"},{"introduced":"1.38.0-NA"},{"last_affected":"1.38.0-NA"}],"source":["CPE_RANGE","CPE_STRING"]}}],"versions":["1.38.0-NA","1.35.6","1.37.2","1.37.1","1.35.5","1.37.0","1.37.0-rc.2","1.37.0-rc.1","1.37.0-rc.0","1.35.4","1.35.3","1.35.2","1.35.1","1.35.0","1.35.0-rc.3","1.35.0-rc.2","1.35.0-rc.1","1.35.0-rc.0","test-hashar-for-ci","1.6.0","1.5.0beta4","1.5.0beta3","1.5.0beta2","1.5.0beta1","1.5.0alpha2","1.5.0alpha1","1.3.0beta1","1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-34911.json"}}],"schema_version":"1.7.5"}