Back

MEDIUM

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

Published Sep 27, 2020

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

Affected products

Remediation

Red Hat statement

OpenShift Container Platform (OCP) delivers the mediawiki package, but the vulnerable code is not bundled, therefore OCP is not affected by this flaw.

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Sep 27, 2020
Updated Aug 4, 2024
Reserved Sep 23, 2020
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Sep 27, 2020
ENISA EUVD
Assigner mitre
Published Sep 27, 2020
Updated Aug 4, 2024
Exploited since n/a
EUVD-2022-4110 GHSA-H8QX-MJ6V-2934