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
2DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41012
GHSA-f942-cxv6-p9mx