Mediawiki Cargo Extension, Cross-site Scripting, CVE-2025-XXXX (Moderate)

Listen to this Post

The CVE in the Mediawiki Cargo Extension stems from improper neutralization of user input before it is rendered on a web page. The Cargo extension provides a framework for storing and querying data within MediaWiki. The vulnerability is a Stored XSS, meaning the malicious script is saved within the wiki’s content. A specific field used for defining display formats in Cargo queries did not adequately sanitize or escape user-supplied JavaScript code. When a page containing a maliciously crafted Cargo query is viewed by another user, the attacker’s script executes in the victim’s browser context. This allows the attacker to steal session cookies, perform actions on behalf of the user, or deface the wiki page, as the script runs with the permissions of the victim’s session.
Platform: MediaWiki Extension
Version: Before 3.8.3
Vulnerability: Stored XSS
Severity: Moderate

date: 2025-10-18

Prediction: 2025-11-01

What Undercode Say:

Searching for Cargo inline queries in page source
grep -r "<cargo" /var/www/html/wiki/
// Example malicious payload for format parameter
{_format:"<script>alert(document.cookie)</script>"}

How Exploit:

Attacker edits a wiki page, inserting a malicious Cargo query with a script in the format parameter. The payload is stored in the database. When any user loads the compromised page, the embedded script executes automatically in their browser, potentially hijacking their session.

Protection from this CVE:

Upgrade to Cargo version 3.8.3 or later. This update implements proper output encoding, ensuring any user input placed into the HTML page is treated as inert text, not executable code.

Impact:

Session hijacking, unauthorized actions, page defacement.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top