CVE-2020-25828

mediawiki: non-jqueryMsg version of mw.message().parse() doesn't escape HTML leads to XSS

Published Sep 27, 2020 CVSS 3.1 · 6.1 Medium EPSS 1.1% KEV · Not listed
Description
An issue was discovered in MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4. The non-jqueryMsg version of mw.message().parse() doesn't escape HTML. This affects both message contents (which are generally safe) and the parameters (which can be based on user input). (When jqueryMsg is loaded, it correctly accepts only whitelisted tags in message contents, and escapes all parameters. Situations with an unloaded jqueryMsg are rare in practice, but can for example occur for Special:SpecialPages on a wiki with no extensions installed.)

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2379-1 mediawiki security update
Debian DSA Debian DSA DSA-4767-1 mediawiki security update
EUVD EUVD EUVD-2022-4110 An issue was discovered in MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4. The non-jqueryMsg version of mw.message().parse() doesn't escape HTML. This affects both message contents (which are generally safe) and the parameters (which can be based on user input). (When jqueryMsg is loaded, it correctly accepts only whitelisted tags in message contents, and escapes all parameters. Situations with an unloaded jqueryMsg are rare in practice, but can for example occur for Special:SpecialPages on a wiki with no extensions installed.)
Github GHSA Github GHSA GHSA-h8qx-mj6v-2934 MediaWiki Cross-site Scripting (XSS) vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 3:40 PM
Reserved
Sep 23, 2020, 12:00 AM
Status
Modified
Published
Sep 27, 2020, 9:15 PM
Modified
Jun 17, 2026, 3:07 AM
Severity
Moderate
Public date
Sep 27, 2020, 12:00 AM