CVE-2026-96874 in MediaWikiinfo

Summary

by MITRE • 09/25/2026

Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in the Mediawiki - Cargo extension allows Stored XSS.






This issue affects Mediawiki - Cargo extension: through 3.9.4.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 09/25/2026

The identified vulnerability represents a critical security flaw within the MediaWiki Cargo extension, specifically affecting versions up to and including 3.9.4. This weakness is classified as an improper neutralization of input during web page generation, commonly known as Cross-Site Scripting or XSS. The specific nature of this vulnerability allows for Stored XSS attacks, which distinguishes it from reflected variants by the persistence of the malicious payload within the application's data store rather than merely in a URL parameter or HTTP request header. This classification aligns with CWE-79, which covers Improper Neutralization of Input During Web Page Generation, and is further contextualized under ATT&CK technique T1059, specifically sub-technique 007 for JavaScript execution within browser environments.

The technical root cause lies in the insufficient sanitization or validation of user-supplied data before it is rendered by the Cargo extension's interface components. When a user inputs content that includes executable script tags or event handlers, the application fails to properly escape these characters. Consequently, when this malicious input is retrieved and displayed on subsequent pages viewed by other users or even administrators, the browser interprets the embedded code as legitimate JavaScript. This failure in neutralization allows attackers to inject client-side scripts into web pages viewed by other users, effectively turning the victim's browser into an instrument for executing arbitrary commands within the context of the vulnerable application.

The operational impact of a Stored XSS vulnerability is significantly more severe than that of reflected XSS due to its persistent nature. Once the malicious payload is stored in the database via the Cargo extension, it will be served to every user who accesses the affected page or data view without requiring any further interaction from the attacker beyond the initial injection. This persistence ensures a high probability of successful exploitation against multiple victims over an extended period. The consequences can include session hijacking through theft of authentication cookies, credential harvesting via fake login forms injected into the DOM, defacement of the wiki interface, and potentially more severe actions such as performing administrative actions on behalf of authenticated users if they have elevated privileges. In enterprise environments where MediaWiki is used for collaboration or knowledge management, this can lead to significant data integrity issues and loss of trust in the platform's security posture.

Mitigation strategies must address both immediate remediation and long-term defensive coding practices. The primary and most effective mitigation is to upgrade the MediaWiki Cargo extension to version 3.9.5 or later, where developers have implemented proper input validation and output encoding mechanisms to neutralize malicious scripts before they reach the browser. For organizations unable to patch immediately due to compatibility constraints, temporary mitigations may include implementing a Web Application Firewall (WAF) rule set designed to detect and block common XSS payloads in POST requests targeting Cargo endpoints. Additionally, enabling Content Security Policy headers with strict script-src directives can help mitigate the impact by preventing the execution of unauthorized scripts, although this requires careful configuration to avoid breaking legitimate functionality. From a development perspective, adhering to OWASP guidelines for input validation and output encoding is essential to prevent similar vulnerabilities in future updates or custom extensions interacting with MediaWiki data structures.

Reservation

09/23/2026

Disclosure

09/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!