CVE-2022-34911

NameCVE-2022-34911
DescriptionAn 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().
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3117-1, DSA-5246-1, ELA-674-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mediawiki (PTS)stretch (security)1:1.27.7-1+deb9u11vulnerable
stretch (lts), stretch1:1.27.7-1+deb9u13fixed
buster (security), buster, buster (lts)1:1.31.16-1+deb10u8fixed
bullseye1:1.35.13-1+deb11u2fixed
bullseye (security)1:1.35.13-1+deb11u3fixed
bookworm (security), bookworm1:1.39.10-1~deb12u1fixed
sid, trixie1:1.39.10-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mediawikisourcestretch1:1.27.7-1+deb9u12ELA-674-1
mediawikisourcebuster1:1.31.16-1+deb10u3DLA-3117-1
mediawikisourcebullseye1:1.35.8-1~deb11u1DSA-5246-1
mediawikisource(unstable)1:1.35.7-1

Notes

https://phabricator.wikimedia.org/T308471
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/805208
https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/PIPYDRSHXOYW5DB7X755QDNUV5EZWPWB/

Search for package or bug name: Reporting problems