Skip to main content
Vulnerability Database/CVE-2026-96875

CVE-2026-96875: MediaWiki Cargo Extension XSS Vulnerability

CVE-2026-96875 is a stored cross-site scripting flaw in MediaWiki Cargo extension that allows attackers to inject malicious scripts into web pages. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-96875 Overview

CVE-2026-96875 is a stored cross-site scripting (XSS) vulnerability in the MediaWiki Cargo extension through version 3.9.4. The flaw stems from improper neutralization of input during web page generation, classified under [CWE-79]. An unauthenticated attacker can inject malicious script content that persists on the server and executes in the browser of any user who views the affected page.

Critical Impact

Stored XSS enables attackers to execute arbitrary JavaScript in victim browsers, hijack sessions of authenticated editors and administrators, and deface wiki content without user interaction beyond page load.

Affected Products

  • MediaWiki Cargo extension through version 3.9.4
  • Wikimedia MediaWiki deployments using the Cargo extension
  • Third-party wikis that have installed the Cargo extension at or below 3.9.4

Discovery Timeline

  • 2026-09-25 - CVE-2026-96875 published to the National Vulnerability Database
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-96875

Vulnerability Analysis

The Cargo extension stores structured data from wiki pages and renders it back through queries and templates. The vulnerability allows attacker-supplied content to be reflected into generated HTML without sufficient sanitization or output encoding. Because the payload is persisted in Cargo-managed storage, every subsequent page render delivers the script to viewers.

The attack requires no privileges and no user interaction beyond browsing a page containing the injected data. Successful exploitation runs attacker JavaScript in the security context of the wiki origin, exposing session cookies, CSRF tokens, and administrative interface actions.

Fix details are tracked in the Wikimedia Gerrit code review and the corresponding Phabricator task T435206.

Root Cause

The root cause is missing or incomplete output escaping when Cargo renders stored field values back into HTML templates. Characters that should be encoded as HTML entities pass through to the rendered page, allowing <script> tags and event-handler attributes to be interpreted by the browser.

Attack Vector

An attacker edits or submits content that Cargo persists in its backing tables. When any user, including administrators, loads a page that renders this data through a Cargo query or template, the injected JavaScript executes. The attack is network-reachable, requires no authentication, and needs no user interaction beyond normal page viewing.

No verified public proof-of-concept code is available. See the referenced Gerrit patch and Phabricator task for implementation-level details.

Detection Methods for CVE-2026-96875

Indicators of Compromise

  • Cargo-stored field values containing HTML tags such as <script>, <iframe>, or <svg> with embedded event handlers
  • Wiki page revisions introducing attributes like onerror=, onload=, or onmouseover= inside Cargo-tracked templates
  • Unexpected outbound requests from editor or administrator browsers to attacker-controlled domains after viewing wiki pages

Detection Strategies

  • Review MediaWiki revision history for edits that insert raw HTML or JavaScript into Cargo-declared fields
  • Query Cargo database tables directly for stored values matching XSS payload patterns
  • Enable and monitor Content Security Policy (CSP) violation reports to surface inline script execution attempts

Monitoring Recommendations

  • Forward MediaWiki access logs and CSP reports into a centralized logging platform for correlation
  • Alert on anomalous administrative actions such as privilege changes shortly after a user viewed a modified page
  • Track edits to high-traffic templates and Cargo-backed pages for unexpected markup changes

How to Mitigate CVE-2026-96875

Immediate Actions Required

  • Upgrade the Cargo extension to a version above 3.9.4 that includes the patch referenced in Gerrit change 1328629
  • Audit recent edits to Cargo-tracked pages and revert any revisions containing script content or suspicious HTML attributes
  • Invalidate active sessions for administrators and privileged editors after remediation

Patch Information

The fix is published through the Wikimedia Gerrit code review 1328629. Operators should pull the patched Cargo release and redeploy. Additional context is available in Phabricator task T435206.

Workarounds

  • Restrict editing of Cargo-backed pages and templates to trusted user groups until the patch is applied
  • Deploy a strict Content Security Policy that disallows inline scripts and untrusted script sources
  • Temporarily disable the Cargo extension if patching cannot be performed promptly and the data model allows it
bash
# Update the Cargo extension within a MediaWiki installation
cd /var/www/mediawiki/extensions/Cargo
git fetch origin
git checkout <patched-release-tag>
php /var/www/mediawiki/maintenance/update.php --quick

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.