
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-39839 is a stored Cross-Site Scripting (XSS) vulnerability in the Wikimedia Foundation MediaWiki Cargo Extension, classified under CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page). The vulnerability allows attackers to inject malicious scripts that are persistently stored and executed in the browsers of users who view the affected content. All versions of the Cargo Extension before 3.8.7 are affected. It was published on April 7, 2026, with a patch released shortly after. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) and a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory).
The root cause is improper neutralization of script-related HTML tags in user-supplied input processed by the Cargo Extension's map format feature (CWE-80). Specifically, the extension fails to sanitize parameters such as URLs before storing and rendering them, allowing injection of javascript: URI schemes and other script-bearing HTML constructs. An attacker can craft a MediaWiki template with a malicious payload (e.g., javascript:alert(...)) passed as a URL parameter to Cargo's map format, which is then stored in the wiki and executed when other users navigate to the affected Special:CargoQuery page. Detailed reproduction steps, including template creation and parameter injection techniques, are publicly documented in the Wikimedia Phabricator issue tracker (Phabricator, GitHub Advisory).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of any user who views the affected wiki content, enabling session token theft, unauthorized actions performed on behalf of victims, and modification of page content. The subsequent system impact is rated High for both confidentiality and integrity, meaning sensitive user data and wiki content integrity can be significantly compromised. Availability is not directly impacted, but the persistent nature of stored XSS means the malicious payload remains active until explicitly removed (GitHub Advisory, Phabricator).
A proof-of-concept with detailed step-by-step reproduction instructions is publicly available on the Wikimedia Phabricator issue tracker, including specific template creation steps and query parameters to trigger the XSS (Phabricator). There is no current evidence of active in-the-wild exploitation or threat actor attribution. The EPSS score is approximately 0.044% (very low probability of exploitation within 30 days), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).
Special:Version page or inspecting HTTP responses for Cargo-related metadata.Template:XSS) that passes user-supplied parameters directly into Cargo's map format, including a URL field.javascript: URI as the URL parameter, e.g., {{XSS|URL=javascript:alert('Map XSS')|lat=1|lon=2|Text=Click me}}./wiki/Special:CargoQuery with the appropriate query parameters to render the Cargo map output containing the injected payload.Special:CargoQuery with unusual or encoded query parameters; log entries for template creation or page edits containing javascript: strings or encoded script tags.javascript: URIs, <script> tags, or HTML event handler attributes (e.g., onerror=, onload=) within Cargo-related fields.Special:CargoQuery results or pages using Cargo map format templates (Phabricator).The primary remediation is to upgrade the MediaWiki Cargo Extension to version 3.8.7 or later, which contains the fix for this vulnerability. Patches are available via the Wikimedia Gerrit repositories (Gerrit patch 1, Gerrit patch 2). As interim mitigations, administrators should implement Content Security Policy (CSP) headers to restrict script execution, audit stored wiki content for injected malicious scripts, and consider temporarily disabling the Cargo Extension if immediate patching is not feasible (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."