Skip to main content

MediaWiki Cargo CVE-2025-62671

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-18 c4f26cc8-17ff-4c99-b5e2-38fc1793eacc
6.9
CVSS 4.0 · Vendor: c4f26cc8-17ff-4c99-b5e2-38fc1793eacc
View

Attack ChainAIDerived

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

  1. Access
    Obtain edit-capable wiki account
  2. Delivery
    Store crafted payload in Cargo-backed field
  3. Exploit
    Victim views rendering page
  4. Execution
    Unsanitized script executes in browser
  5. Impact
    Hijack 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.

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

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

Alert me

AnalysisAIv1 – 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

composer mediawiki/cargo fix: 3.8.3

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

Vendor (c4f26cc8-17ff-4c99-b5e2-38fc1793eacc) 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
vuln.today AI 5.4 MEDIUM

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.

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

Primary rating from Vendor (c4f26cc8-17ff-4c99-b5e2-38fc1793eacc).

CVSS VectorVendor: c4f26cc8-17ff-4c99-b5e2-38fc1793eacc

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

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

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
popular MediaWiki extension, common on data-driven wikis but not universal
Data Quality
3 sources
Confidence: Low

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.4%
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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

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-2014-1610 MEDIUM POC
6.0 Jan 30

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

CVE-2015-8009 CRITICAL POC
9.8 Jul 25

The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,

CVE-2023-37303 CRITICAL POC
9.8 Jun 30

An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi

CVE-2022-29906 CRITICAL POC
9.8 Apr 29

The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf

CVE-2022-29904 CRITICAL POC
9.8 Apr 29

The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ

CVE-2022-28206 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2022-28205 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2021-36128 CRITICAL POC
9.8 Jul 02

An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2021-36126 CRITICAL POC
9.8 Jul 02

An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2017-8809 CRITICAL
9.8 Nov 15

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

CVE-2024-47849 HIGH POC
8.8 Oct 05

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun

CVE-2021-36132 HIGH POC
8.8 Jul 02

An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu

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