Skip to main content

MediaWiki Cargo CVE-2026-58521

| EUVDEUVD-2026-41102 MEDIUM
SQL Injection (CWE-89)
2026-07-01 wikimedia-foundation GHSA-9j5g-78q4-mjh2
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
    Identify public MediaWiki instance with Cargo Extension active
  2. Delivery
    Locate page rendering #cargo_query template accessible without login
  3. Exploit
    Inject SQL metacharacters into Cargo query parameter
  4. Execution
    MediaWiki constructs and executes malicious SQL via Rdbms layer
  5. Impact
    Extract sensitive data or modify records in Cargo-managed tables

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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 target MediaWiki instance. Exploitation at the unauthenticated level (consistent with CVSS 4.0 PR:N) requires that Cargo query templates - such as pages using #cargo_query - are accessible to anonymous visitors, a configuration common on public wikis. Exploitation is limited by: (1) MediaWiki installations that restrict page viewing or template rendering to authenticated or editor-level users (via $wgGroupPermissions), which eliminates the anonymous attack surface while reducing but not eliminating risk; (2) MediaWiki's Wikimedia\Rdbms abstraction layer, which likely constrains injection to Cargo-provisioned tables rather than full database schema access, consistent with the all-Low impact ratings; (3) any reverse-proxy or WAF-layer SQL injection filtering deployed upstream of the MediaWiki application. All Cargo Extension versions prior to the fixed releases across all branches (pre-1.43.9, pre-1.44.6, pre-1.45.4) are affected regardless of wiki content or theme configuration.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) signals low-complexity, unauthenticated, remotely reachable exploitation - a serious attack surface for any SQL injection class vulnerability. All impact dimensions are rated Low across both vulnerable and subsequent systems (VC:L/VI:L/VA:L/SC:L/SI:L/SA:L), suggesting the flaw is constrained in blast radius, likely because MediaWiki's database abstraction layer limits injection to Cargo-scoped tables. EPSS data was not provided in the input and cannot be independently assessed here. The vulnerability is not listed in CISA KEV, and no POC has been identified, indicating no confirmed broad or targeted exploitation. Real-world priority is moderate-to-high for public-facing MediaWiki deployments where Cargo query templates are rendered for anonymous users; private or editor-restricted wikis face meaningfully reduced exposure. A committed upstream fix (Gerrit r/c/1298854) is available, lowering the window of exposure for administrators who patch promptly.

Exploit ScenarioDerived

An unauthenticated attacker locates a public MediaWiki page that renders a Cargo query template to display structured wiki data, then crafts a malicious URL or POST parameter injecting SQL metacharacters into a Cargo filter or field argument. The injected payload manipulates the underlying SQL statement executed against the MediaWiki database, enabling extraction of data from Cargo-managed tables or unauthorized record modification. No public proof-of-concept code has been identified at time of analysis, but the CVSS 4.0 low-complexity, no-prerequisite vector indicates the technique is accessible to moderately skilled attackers familiar with SQL injection patterns.

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

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

Alert me

AnalysisAIv1 – Jul 01, 2026

SQL injection in the Wikimedia Foundation's Cargo Extension for MediaWiki exposes all installations running versions prior to 1.43.9, 1.44.6, or 1.45.4 to unauthenticated database manipulation via the Cargo query interface. The flaw stems from improper neutralization of user-controlled input incorporated into SQL statements without adequate parameterization, allowing attackers to read, modify, or partially disrupt data stored in Cargo-managed tables. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 4.0 vector confirms low-complexity, network-accessible exploitation requiring no authentication or user interaction.

RemediationAI

Upgrade the Cargo Extension to the patched release for your MediaWiki branch: 1.43.9 for the 1.43.x series, 1.44.6 for the 1.44.x series, or 1.45.4 for the 1.45.x series. The fix is tracked in Gerrit change https://gerrit.wikimedia.org/r/c/1298854 and Phabricator task https://phabricator.wikimedia.org/T428274. If an immediate upgrade is not possible, restrict access to pages and templates invoking #cargo_query and related Cargo functions by tightening MediaWiki group permissions ($wgGroupPermissions) to require at minimum a registered user session before Cargo queries are parsed and executed - this trades wiki functionality for reduced attack surface but does not eliminate risk for authenticated-user exploitation paths. Additionally, consider deploying a WAF rule targeting SQL metacharacter injection in query string parameters as a supplementary control, noting that WAF bypass techniques exist and this is not a substitute for patching.

Affected VersionsENISA

Mediawiki - Cargo Extension * <1.43.9,1.44.6,1.45.4

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The Cargo Extension (CPE: cpe:2.3:a:the_wikimedia_foundation:mediawiki_-_cargo_extension:*:*:*:*:*:*:*:*) extends MediaWiki by enabling structured data storage in custom database tables and retrieval via template parser functions such as #cargo_query. CWE-89 (Improper Neutralization of Special Elements in SQL Commands) arises when user-supplied query parameters - such as field selectors, filter conditions, or table identifiers passed through Cargo template syntax - are interpolated into SQL statements without parameterization or sufficient escaping. MediaWiki typically uses the Wikimedia\Rdbms database abstraction layer, which may constrain the scope of injection to Cargo-provisioned tables rather than the full schema, consistent with the all-Low CVSS 4.0 impact ratings. On public wikis, Cargo query templates can be rendered for anonymous visitors, broadening the unauthenticated attack surface significantly.

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
vuln.today AI 8.3 HIGH

Network-exploitable SQL injection requiring no authentication (PR:N); scope changes to the backend database system (S:C); all impacts remain Low, consistent with CVSS 4.0 signals suggesting constrained table-level access.

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

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 - 19:02 EUVD

DescriptionCVE.org

Improper neutralization of special elements used in an SQL command ('SQL injection') vulnerability in The Wikimedia Foundation Mediawiki - Cargo Extension allows SQL Injection.

This issue affects Mediawiki - Cargo Extension: from * before 1.43.9,1.44.6,1.45.4.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
popular structured-data extension across public and enterprise MediaWiki deployments
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.2%
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

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2026-58519 MEDIUM
6.9 Jul 01

Stored cross-site scripting in the Wikimedia Foundation's MediaWiki Cargo Extension (all versions before 3.9.1) allows a

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