CVE-2020-25828: XSS

Published Sep 24, 2020
·
Updated

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

Other sources

An issue was discovered in MediaWiki before 1.31.9 and 1.32.x through 1.34.x before 1.34.3. 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

Non-jqueryMsg version of mw.message(…).parse() doesn't escape HTML

Affected Software

8 affected componentsFixes available
composer/mediawiki/core>=1.31.0, <1.31.9, >=1.34.0, <1.34.3, >=1.34.99, <1.35.0
debian/mediawiki
1:1.31.16-1+deb10u21:1.31.16-1+deb10u61:1.35.11-1~deb11u11:1.35.13-1~deb11u11:1.39.4-1~deb12u11:1.39.5-1~deb12u11:1.39.5-1
composer/mediawiki/core>=1.35.0-rc.0<1.35.0
1.35.0
composer/mediawiki/core>=1.32.0<1.34.3
1.34.3
composer/mediawiki/core>=1.31.0<1.31.9
1.31.9
MediaWiki>=1.32.0<1.34.4
MediaWiki=1.31.10
fedoraproject fedora=33

Event History

Sep 24, 2020
Advisory Published
05:14 PM
Sep 27, 2020
CVE Published
via MITRE·08:31 PM
Data Sourced
via MITRE·08:31 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2020-25828?

CVE-2020-25828 has been classified as a medium severity vulnerability due to its potential for XSS attacks through unescaped HTML.

2

What versions are affected by CVE-2020-25828?

CVE-2020-25828 affects MediaWiki versions before 1.31.10 and versions between 1.32.x and 1.34.x before 1.34.4.

3

How do I fix CVE-2020-25828?

To fix CVE-2020-25828, update MediaWiki to version 1.31.10, 1.34.4, or a later version.

4

What type of vulnerability is CVE-2020-25828?

CVE-2020-25828 is a cross-site scripting (XSS) vulnerability caused by the mw.message().parse() function not escaping HTML.

5

Is there a workaround for CVE-2020-25828?

There is no known workaround for CVE-2020-25828; updating to a patched version is recommended to mitigate the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203