Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryCraft malicious ApiSandbox layout payload
-
ExploitDeliver crafted link to higher-privileged victim
-
ExecutionVictim interacts with ApiSandbox page
-
PersistInjected script executes in victim's browser session
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (wikimedia-foundation).
CVSS VectorVendor: wikimedia-foundation
Lifecycle Timeline
1DescriptionCVE.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
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
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
EUVD-2026-41012
GHSA-f942-cxv6-p9mx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB