MediaWiki Cargo
CVE-2025-62671
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain edit-capable wiki account
-
DeliveryStore crafted payload in Cargo-backed field
-
ExploitVictim views rendering page
-
ExecutionUnsanitized script executes in browser
-
ImpactHijack victim session or act as victim
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 | Exploitation requires the MediaWiki Cargo extension to be installed and in use, and an attacker able to inject content into a Cargo-stored field or a Cargo query that is rendered without proper output neutralization (typically an account with page-edit permissions). Execution additionally depends on a second user loading the page that renders the stored payload, so realistic abuse is gated by (1) edit access to wiki content and (2) a victim viewing the affected page - limiting factors not reflected in the supplied PR:N/UI:N vector. The 'master' branch designation suggests the issue affects development/current source rather than a pinned release, so the exact vulnerable released versions should be confirmed against the Gerrit fix. |
| Impact | This is a moderate-priority issue that does not rise to emergency patching urgency. The input CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) yields only 6.9 (Medium) and claims network, unauthenticated, no-user-interaction exploitation - but that PR:N/UI:N characterization is inconsistent with the stated vulnerability class: stored (persistent) XSS normally requires an attacker able to write/save content (an edit-capable wiki account, hence some privilege) and a victim who later views the poisoned page (user interaction). This conflict should be verified with the vendor; the official vector likely overstates ease of exploitation. Corroborating low-urgency signals: EPSS is 0.45% (37th percentile), indicating low modeled exploitation probability; there is no CISA KEV listing and no public exploit identified at time of analysis. Impact metrics are uniformly Low (VC:L/VI:L/VA:L), consistent with session-scoped script execution rather than full system compromise. Net: a legitimate but bounded stored-XSS risk, not a high-real-risk flaw despite a Medium CVSS. |
| Exploit ScenarioDerived | An attacker with the ability to edit wiki content submits a Cargo-stored value or query parameter containing a malicious script payload that is not properly neutralized during page generation. When another user - potentially an administrator - later views the page that renders this stored data, the script executes in their browser session, enabling cookie/session theft or actions performed as the victim. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Stored cross-site scripting in the MediaWiki Cargo extension lets an attacker who can write to wiki content inject JavaScript into Cargo-stored fields or Cargo query output, which then executes in the browsers of other users who view the affected page. Our independent assessment rates this as requiring an account with page-edit permissions plus a second user loading the rendered page (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), a narrower reality than the supplied CVSS 4.0 vector's PR:N/UI:N framing suggests. Impact is limited to low confidentiality and integrity loss in the victim's session context, EPSS is only 0.45% (37th percentile), and no public exploit code has been identified; this is a moderate-priority issue that does not warrant emergency patching.
RemediationAI
Upstream fix available (Gerrit change 1179707); released patched version not independently confirmed. Apply the change from https://gerrit.wikimedia.org/r/1179707 (tracked in https://phabricator.wikimedia.org/T402147) by updating the Cargo extension to a build that contains the corrected output neutralization, or cherry-pick the commit if you deploy MediaWiki extensions from source. Where immediate upgrade is impossible, compensate in this order: restrict page-edit rights so only trusted editors (or a dedicated group) can edit pages that store Cargo data or use #cargo_query - this directly removes the injection prerequisite at the cost of slowing normal editorial work; audit and clean existing Cargo table contents and template output for unescaped markup, accepting that this is a point-in-time cleanup rather than a durable fix; and apply a Content-Security-Policy that disallows inline script on affected wikis, noting that MediaWiki's heavy use of inline scripts may break functionality depending on configuration. Do not rely on input filtering alone, since the root cause is the missing output encoding, and note that a patched release version has not been independently confirmed from the available data.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Cargo extension is a MediaWiki data-storage and reporting add-on: editors declare structured tables (via #cargo_declare), populate them (#cargo_attach, #cargo_store), and render them through query parser functions such as #cargo_query. The vulnerability is CWE-79 (Improper Neutralization of Input During Web Page Generation), meaning stored field values or Cargo query results are emitted into HTML without correct output encoding, so markup supplied by one editor is interpreted as script in another user's browser. Because the flaw lives in the rendering pipeline of a widely deployed extension, the root cause is output neutralization rather than input filtering, and the durable fix must escape values at the point of HTML generation (or otherwise treat stored Cargo data as untrusted). No CPE strings were supplied, and the advisory designates the 'master' branch, indicating the issue was identified in the current/development source rather than a pinned release; the exact set of vulnerable released versions should be confirmed against the Gerrit change and the Phabricator task.
Know when Mediawiki 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
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
Stored XSS needs edit privileges (PR:L) and a victim viewing the page (UI:R); script runs in the victim's browser authority (S:C) with limited confidentiality/integrity impact and no availability impact.
Primary rating from Vendor (c4f26cc8-17ff-4c99-b5e2-38fc1793eacc).
CVSS VectorVendor: c4f26cc8-17ff-4c99-b5e2-38fc1793eacc
DescriptionCVE.org
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in The Wikimedia Foundation Mediawiki - Cargo Extension allows Stored XSS.This issue affects Mediawiki - Cargo Extension: master.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB