CVE-2020-25814: XSS

Published Sep 24, 2020
·
Updated

In MediaWiki before 1.31.10 and 1.32.x through 1.34.x before 1.34.4, XSS related to jQuery can occur. The attacker creates a message with [javascript:payload xss] and turns it into a jQuery object with mw.message().parse(). The expected result is that the jQuery object does not contain an <a> tag (or it does not have a href attribute, or it's empty, etc.). The actual result is that the object contains an <a href ="javascript... that executes when clicked.

Other sources

In MediaWiki before 1.31.9 and 1.32.x through 1.34.x before 1.34.3, XSS related to jQuery can occur. The attacker creates a message with [javascript:payload xss] and turns it into a jQuery object with mw.message().parse(). The expected result is that the jQuery object does not contain an <a> tag (or it does not have a href attribute, or it's empty, etc.). The actual result is that the object contains an <a href ="javascript... that executes when clicked.

GitHub

mw.message.parse() accepts javascript: protocol in wikilinks

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.31.10
MediaWiki>=1.32.0<1.34.4
fedoraproject fedora=33

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2020-25814?

CVE-2020-25814 has a medium severity rating due to its ability to enable XSS attacks via jQuery.

2

How do I fix CVE-2020-25814?

To fix CVE-2020-25814, upgrade MediaWiki to version 1.31.10, 1.34.4, or later versions.

3

Which versions of MediaWiki are affected by CVE-2020-25814?

CVE-2020-25814 affects MediaWiki versions before 1.31.10 and between 1.32.x and 1.34.x prior to 1.34.4.

4

What type of vulnerability is CVE-2020-25814?

CVE-2020-25814 is an XSS (Cross-Site Scripting) vulnerability related to jQuery parsing.

5

What impact does CVE-2020-25814 have on users?

CVE-2020-25814 allows attackers to inject malicious scripts into user-facing pages, potentially leading to unauthorized actions on behalf of users.

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