MediaWiki Cross-site Scripting (XSS) in mediawiki/core

mediawiki/core Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
6.1

CVE-2019-12471: MediaWiki Cross-site Scripting (XSS). Affects mediawiki/core across 3 version ranges.

>= 1.27.0, < 1.27.6 >= 1.30.0, < 1.30.2 >= 1.31.0, < 1.31.2

Fixed in 1.27.6, 1.30.2 or 1.31.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2019-12471 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MediaWiki is a free and open-source wiki software package written in PHP. It is widely used to power various websites, including Wikipedia. The mediawiki/core package is the core component of MediaWiki, responsible for providing the fundamental functionality and features of the software. Unfortunately, versions 1.30.0 through 1.32.1 of MediaWiki's core package are vulnerable to a Cross-site Scripting (XSS) attack.

Vulnerability Detail

The XSS vulnerability in MediaWiki allows an attacker to inject malicious JavaScript code into the web application, which is then executed by unsuspecting users who visit the affected pages. This vulnerability is caused by the ability to load user JavaScript from a non-existent account, which can be exploited by anyone to create the account and perform XSS attacks on users who load that script. The impact of this vulnerability can range from unauthorized data access to complete control over the affected user's session. The vulnerability has been assigned a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.27.0, < 1.27.6 1.27.6
    composer require mediawiki/core:1.27.6
  • >= 1.30.0, < 1.30.2 1.30.2
    composer require mediawiki/core:1.30.2
  • >= 1.31.0, < 1.31.2 1.31.2
    composer require mediawiki/core:1.31.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a patched version is not immediately feasible, a temporary workaround can be implemented by disabling the loading of user JavaScript in MediaWiki. This can be achieved by modifying the configuration settings or applying a patch provided by the MediaWiki community. It is important to note that this workaround may impact certain functionality that relies on user JavaScript, so it should only be considered as a temporary measure until the software can be upgraded.

Conclusion

In conclusion, the mediawiki/core package of MediaWiki versions 1.30.0 through 1.32.1 is vulnerable to a Cross-site Scripting (XSS) attack. It is crucial to upgrade to a patched version (1.32.2, 1.31.2, 1.30.2, or 1.27.6) to mitigate this vulnerability. If immediate upgrading is not possible, disabling the loading of user JavaScript can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mediawiki/core →

Share this vulnerability

FAQ

MediaWiki is a free and open-source wiki software package written in PHP. It is widely used to power various websites, including Wikipedia.

The mediawiki/core package is the core component of MediaWiki, responsible for providing the fundamental functionality and features of the software.

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The impact of this vulnerability can range from unauthorized data access to complete control over the affected user's session.

To fix this vulnerability, it is recommended to upgrade to a patched version of MediaWiki (1.32.2, 1.31.2, 1.30.2, or 1.27.6).

Related vulnerabilities

Recent vulnerabilities recorded for mediawiki/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.27.0, < 1.27.6 1.27.6
    composer require mediawiki/core:1.27.6
  • >= 1.30.0, < 1.30.2 1.30.2
    composer require mediawiki/core:1.30.2
  • >= 1.31.0, < 1.31.2 1.31.2
    composer require mediawiki/core:1.31.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback