Skip to main content

MediaWiki EUVDEUVD-2026-41012

| CVE-2026-58031 NONE
Cross-site Scripting (XSS) (CWE-79)
2026-07-01 wikimedia-foundation GHSA-f942-cxv6-p9mx
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Craft malicious ApiSandbox layout payload
  3. Exploit
    Deliver crafted link to higher-privileged victim
  4. Execution
    Victim interacts with ApiSandbox page
  5. Persist
    Injected script executes in victim's browser session
  6. Impact
    Exfiltrate session token or perform API actions 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

The attacker must hold a low-privilege authenticated account on the target MediaWiki instance (confirmed by PR:L in the CVSS 4.0 vector). The vulnerability is located in the Special:ApiSandbox developer interface, so the victim must be induced to interact with a crafted sandbox page or URL (confirmed by UI:P - passive user interaction required). Exploitation is further limited to MediaWiki instances running exactly version 1.46.0-rc.0; all stable releases including 1.46.0 are not affected. Non-default exposure factors: production deployments rarely run release candidates, and the ApiSandbox is a developer-facing tool that many sites restrict to administrators, further constraining the realistic attacker and victim population.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N) presents an internal tension: it correctly identifies a network-reachable, low-complexity flaw requiring low privileges and passive user interaction, yet assigns all confidentiality, integrity, and availability metrics as N (no impact). This is atypical for XSS and may reflect the assessor's view that the ApiSandbox is a low-sensitivity developer tool. However, XSS canonically achieves at minimum session token theft and page content manipulation in the victim's browser, which warrants C:L and I:L in practice. No EPSS score is available, KEV status is not listed, and no POC has been identified, collectively indicating low active exploitation risk. Critically, the affected version is a release candidate (1.46.0-rc.0), making real-world production exposure extremely narrow. Organisations running only stable MediaWiki releases are not vulnerable. The combination of a narrow version window, no active exploitation, no POC, and the all-N impact in the provided vector suggest this is a low priority for most environments.

Exploit ScenarioDerived

An attacker holding a low-privilege MediaWiki account crafts a malicious ApiSandbox URL or page state that embeds unsanitized script content via the vulnerable ApiSandboxLayout.js rendering path, then social-engineers a higher-privileged user into visiting the ApiSandbox with that crafted input. When the victim's browser renders the sandbox layout, the injected script executes in their session, potentially harvesting authentication cookies or performing API actions on their behalf. No public proof-of-concept code has been identified at time of analysis.

Awaiting Data No severity or threat signals available yet. Label will update when CVSS score is published or threat intelligence arrives.
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

Cross-site scripting in MediaWiki's ApiSandbox component (ApiSandboxLayout.js) allows an authenticated attacker to inject malicious JavaScript that executes in the browser of a victim who interacts with a crafted ApiSandbox page. Only MediaWiki 1.46.0-rc.0 is confirmed affected; the 1.46.0 stable release resolves the flaw, meaning real-world exposure is limited to deployments running the release candidate. No public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

The primary remediation is to upgrade to MediaWiki 1.46.0 stable, which resolves the vulnerability. Deployments still running the 1.46.0-rc.0 release candidate should treat this as an urgent driver to migrate to the stable release. If an immediate upgrade is not feasible, access to the Special:ApiSandbox page can be restricted via MediaWiki's namespace or page protection mechanisms, limiting it to trusted administrator accounts only - this reduces the attack surface but does not eliminate the flaw. Additional context is available at https://phabricator.wikimedia.org/T426889. No other vendor workarounds are documented in available sources.

Affected VersionsENISA

mediawiki 1.46.0-rc.0 <1.46.0

Affected Packages

euvd mediawiki fix: 1.46.0

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

MediaWiki is the PHP-based wiki engine powering Wikipedia and thousands of other wikis. The affected component is Special:ApiSandbox, an interactive browser-based developer tool for testing MediaWiki API calls. The vulnerability resides in resources/src/mediawiki.Special.Apisandbox/ApiSandboxLayout.js, a client-side JavaScript module responsible for rendering API sandbox layouts. CWE-79 (Improper Neutralization of Input During Web Page Generation) indicates that user-controlled input is not properly sanitized or escaped before being written into the DOM, enabling script injection. The CPE string cpe:2.3:a:wikimedia_foundation:mediawiki:*:*:*:*:*:*:*:* covers the MediaWiki application broadly, with the version range narrowed by the advisory to 1.46.0-rc.0 only.

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 (wikimedia-foundation) PRIMARY 0.0 NONE
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

PR:L reflects required authenticated access; S:C and C:L/I:L capture XSS browser-side impact - session theft and DOM manipulation - which the all-N provided vector omits.

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:N/SI:N/SA:N

Primary rating from Vendor (wikimedia-foundation).

CVSS VectorVendor: wikimedia-foundation

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

Lifecycle Timeline

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

DescriptionCVE.org

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Wikimedia Foundation MediaWiki.

This vulnerability is associated with program files resources/src/mediawiki.Special.Apisandbox/ApiSandboxLayout.Js.

This issue affects MediaWiki: from 1.46.0-rc.0 before 1.46.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
High
Wikipedia and thousands of institutional wikis worldwide run MediaWiki
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 NONE
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
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.
Awaiting Data No severity or threat signals available yet. Label will update when CVSS score is published or threat intelligence arrives.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

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