CVE-2022-34911
JSON

6.1medium

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.

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
1.12% (higher than 67% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-MEDIAWIKI-2022-34911

Description

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
mediawiki mediawikibefore 1.35.7, from 1.36.0 before 1.37.3, 1.38.0NVD
fedoraproject fedora36, 37NVD
mediawiki (Bitnami)before 1.35.7, from 1.36.0 before 1.37.3, from 1.38.0 before 1.38.1Bitnami Vulnerability Database

All scores

NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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().

NVD (es)

Se ha detectado un problema en MediaWiki versiones anteriores a 1.35.7, 1.36.x y 1.37.x anteriores a 1.37.3, y 1.38.x anteriores a 1.38.1. Un ataque de tipo XSS puede ocurrir en configuraciones que permiten una carga útil de JavaScript en un nombre de usuario. Tras la creación de la cuenta, cuando es establecido el título de la página como "Welcome" seguido del nombre de usuario, éste no es escapado: la función SpecialCreateAccount::successfulAction() llama a ::showSuccessPage() con un mensaje como segundo parámetro, y OutputPage::setPageTitle() usa text()

References

Sources

SourceRecordLicence
CVE ListCVE-2022-34911 changed 2024-08-03CVE Terms of Use
NVDCVE-2022-34911 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MEDIAWIKI-2022-34911 changed 2025-04-03Apache-2.0