CVE-2014-2853: MediaWiki Core Cross-Site Scripting Vulnerability in InfoAction.php
Summary
CVE-2014-2853: Cross-site scripting vulnerability in includes/actions/InfoAction.php. Affects mediawiki/core across 2 version ranges.
< 1.21.9
>= 1.22.0, < 1.22.6
Fixed in 1.21.9 or 1.22.6, depending on the release line you run. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
MediaWiki is a free and open-source wiki software platform used to power Wikipedia and other wikis. It allows users to create and edit content collaboratively. The software is designed to handle a large number of users and content, providing features such as version control, user management, and extensibility through plugins. However, certain versions of MediaWiki are vulnerable to a cross-site scripting (XSS) attack, specifically in the InfoAction.php file, which can allow attackers to inject malicious scripts into web pages viewed by other users.
Vulnerability Detail
The vulnerability arises from improper handling of user input in the sort key parameter within the InfoAction.php file. This flaw allows remote attackers to inject arbitrary web scripts or HTML into the application. If exploited, this could lead to unauthorized actions being performed on behalf of users, data theft, or the spread of malware. The vulnerability affects MediaWiki versions prior to 1.21.9 and 1.22.x before 1.22.6, making it crucial for users of these versions to take immediate action.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 1.21.91.21.9composer require mediawiki/core:1.21.9 -
>= 1.22.0, < 1.22.61.22.6composer require mediawiki/core:1.22.6
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If immediate upgrading is not feasible, a temporary workaround is to restrict access to the affected functionality or sanitize user inputs to prevent script injection. However, this is not a permanent solution and should only be considered until the software can be updated.
Conclusion
The CVE-2014-2853 vulnerability in MediaWiki poses a significant risk to users of affected versions. It is essential to update to the latest patched versions to mitigate this risk. Users should also consider using tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for mediawiki/core →
FAQ
CVE-2014-2853 is a cross-site scripting vulnerability found in MediaWiki's InfoAction.php file that allows attackers to inject malicious scripts.
MediaWiki versions before 1.21.9 and 1.22.x before 1.22.6 are affected by this vulnerability.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Exploitation of this vulnerability can lead to unauthorized actions, data theft, or the spread of malware among users.
If you cannot update immediately, consider restricting access to the affected functionality and sanitizing user inputs as a temporary measure.
Related vulnerabilities
Recent vulnerabilities recorded for mediawiki/core.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.