Skip to main content

MediaWiki Cargo Extension CVE-2026-58519

| EUVDEUVD-2026-40901 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-01 wikimedia-foundation GHSA-r23x-87q7-xq2f
6.9
CVSS 4.0 · Vendor: wikimedia-foundation
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain wiki editing access (or use anonymous editing)
  2. Delivery
    Inject script payload into a Cargo-tracked structured data field
  3. Exploit
    Cargo stores unsanitized payload in database
  4. Execution
    Victim loads a wiki page rendering the Cargo query
  5. Persist
    Browser executes injected script
  6. Impact
    Exfiltrate session token or deliver secondary payload

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The Cargo Extension must be installed and active on the MediaWiki instance. The attacker must be able to write to a Cargo-tracked page or table - on wikis with open editing (anonymous or low-privilege accounts permitted to edit), this requires no authentication. On wikis that restrict editing to logged-in or higher-privilege users, the attacker must possess at least contributor-level credentials. The stored payload executes when any user (including administrators) loads a wiki page that renders output from the poisoned Cargo query. Exploitation is limited to MediaWiki deployments running Cargo Extension versions prior to 3.9.1; wikis that have disabled the Cargo extension or have not yet populated Cargo tables with attacker-controlled data are not at immediate risk. Browser-level protections such as HttpOnly cookies and CSP can reduce but do not eliminate impact.

Impact

The CVSS 4.0 base score of 6.9 and the E:A exploitation evidence modifier together indicate an actively exploited, medium-high severity vulnerability. The vector AV:N/AC:L/AT:N/PR:N reflects broad network reachability and low complexity, though PR:N warrants scrutiny: MediaWiki deployments that restrict editing to authenticated users would reduce the attacker's initial access to logged-in contributors, softening the PR:N claim. The SC:L/SI:L/SA:L metrics confirm downstream impact on users' browser sessions and data integrity, consistent with stored XSS scope change. Critically, the E:A tag in the CVSS 4.0 supplemental metrics indicates active exploitation has been observed, making this a genuine operational priority for any organization running an internet-accessible MediaWiki instance with the Cargo extension. EPSS data is not provided; however, the active-exploitation signal outweighs the absence of a specific EPSS score for triage purposes. No KEV listing in the CISA catalog is indicated by the input data, so active exploitation is asserted by the vendor/reporter but not yet independently confirmed by CISA.

Exploit ScenarioDerived

An attacker with editing access (or none, if anonymous editing is enabled) submits a Cargo-tracked wiki page containing a malicious payload such as a script tag within a structured data field - for example, a Cargo table value like a name or description field. The Cargo extension stores this unsanitized value in its database. Any wiki user who subsequently views a page that queries and displays that Cargo table triggers automatic execution of the injected script, which can silently exfiltrate the victim's session cookie to an attacker-controlled server, enabling account takeover without any additional user interaction beyond page load.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

Stored cross-site scripting in the Wikimedia Foundation's MediaWiki Cargo Extension (all versions before 3.9.1) allows attackers to inject persistent malicious scripts into wiki pages rendered through the Cargo data-display system. The CVSS 4.0 vector carries E:A (evidence of active exploitation), elevating this beyond a theoretical risk. Successful exploitation enables session hijacking, credential theft, and in-browser payload delivery against any user who views an affected Cargo-rendered page.

RemediationAI

Upgrade the MediaWiki Cargo Extension to version 3.9.1 or later, which incorporates the fix committed in Gerrit change 1277612 (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cargo/+/1277612). The patched version 3.9.1 is confirmed by the advisory scope statement. If immediate upgrade is not feasible, restrict wiki editing permissions to trusted authenticated users only via MediaWiki's $wgGroupPermissions configuration to eliminate the PR:N attack surface - note this may break anonymous contribution workflows. Additionally, enabling MediaWiki's Content Security Policy (CSP) headers via $wgCSPHeader can limit the impact of any injected scripts by restricting script execution origins, though CSP is a mitigation layer, not a fix. Review existing Cargo table data for suspicious script payloads as part of incident response, since stored XSS means malicious content may already be present in the database.

Affected VersionsENISA

Mediawiki - Cargo Extension * <3.9.1

Affected Packages

euvd mediawiki_cargo_extension fix: 3.9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The MediaWiki Cargo Extension (CPE: cpe:2.3:a:the_wikimedia_foundation:mediawiki_-_cargo_extension:*:*:*:*:*:*:*:*) adds structured-data storage and querying to MediaWiki by allowing wiki editors to define database-backed tables and display query results on wiki pages. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS): user-supplied input passed through Cargo's data-storage or query-display pipeline is not adequately sanitized before being embedded in HTML output. Because Cargo renders structured data directly into page HTML, a poisoned field value persists in the underlying data store and is re-injected into every page load that queries or displays it, making this a stored (Type II) XSS rather than reflected.

Know when Mediawiki Cargo Extension gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wikimedia-foundation) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:A
vuln.today AI 6.1 MEDIUM

Network-reachable stored XSS with no complexity; PR:N reflects open-editing wikis; UI:R required as victim must load the poisoned page; scope changes to browser context.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (wikimedia-foundation).

CVSS VectorVendor: wikimedia-foundation

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 06:01 EUVD

DescriptionCVE.org

Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in The Wikimedia Foundation Mediawiki - Cargo Extension allows Stored XSS.

This issue affects Mediawiki - Cargo Extension: from * before 3.9.1.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
optional MediaWiki extension, used by organizations running structured-data wikis
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2026-96878 MEDIUM
6.9 Sep 25

Reflected cross-site scripting in the MediaWiki Cargo extension (versions through 3.9.4) lets remote, unauthenticated at

CVE-2026-96877 MEDIUM
6.9 Sep 25

Reflected cross-site scripting in the MediaWiki Cargo extension (versions through 3.9.4) allows an unauthenticated remot

CVE-2026-96876 MEDIUM
6.9 Sep 25

Reflected cross-site scripting in the MediaWiki Cargo extension, affecting all versions through 3.9.4, allows an unauthe

CVE-2026-96875 MEDIUM
6.9 Sep 25

Stored cross-site scripting (XSS) in the MediaWiki Cargo extension through version 3.9.4 allows attackers to inject pers

CVE-2026-14363 MEDIUM
6.9 Jul 01

SQL injection in the Wikimedia Foundation's MediaWiki Cargo Extension exposes wiki deployments to unauthenticated databa

CVE-2026-58521 MEDIUM
6.9 Jul 01

SQL injection in the Wikimedia Foundation's Cargo Extension for MediaWiki exposes all installations running versions pri

CVE-2026-39837 MEDIUM
6.3 Apr 07

Stored cross-site scripting (XSS) in the Mediawiki Cargo Extension before version 3.8.7 allows authenticated users to in

CVE-2026-39841 MEDIUM
6.3 Apr 07

Stored XSS vulnerability in Wikimedia Cargo Extension before 3.8.7 allows authenticated users with page editing permissi

CVE-2026-39839 MEDIUM
6.3 Apr 07

Stored XSS in Wikimedia Cargo Extension before 3.8.7 allows authenticated users with page editing privileges to inject m

CVE-2026-103049 MEDIUM
6.1 Sep 29

Reflected cross-site scripting in the MediaWiki Cargo extension before 1.46.1 lets remote attackers inject script into a

CVE-2026-39840 MEDIUM
5.1 Apr 07

Cross-site scripting (XSS) vulnerability in Mediawiki Cargo Extension before version 3.8.7 allows authenticated users to

CVE-2026-96874 LOW
2.3 Sep 25

Stored cross-site scripting in the MediaWiki Cargo extension through version 3.9.4 lets an authenticated user with conte

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy