CVE-2026-58031

Stored i18n XSS in Special:ApiSandbox when a deprecated module is selected

Published Jul 1, 2026 CVSS 4.0 · 0 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is an Improper Neutralization of Input During Web Page Generation (CWE‑79) flaw in MediaWiki that allows a malicious user to inject arbitrary JavaScript into the Special:ApiSandbox page. This stored cross‑site scripting can be abused when a deprecated module is selected, enabling session hijacking, defacement, or other client‑side attacks if an attacker can influence input that is subsequently rendered.

Affected Systems

MediaWiki versions from 1.46.0‑rc.0 through just before the final 1.46.0 release are vulnerable. Installations derived from these releases, provided by the Wikimedia Foundation, use the Special:ApiSandbox interface and the deprecated module, placing them at risk.

Risk and Exploitability

The CVSS score of 5.4 indicates low severity, and the EPSS score of less than 1% suggests a very low probability of exploitation. The issue is not listed in CISA KEV. The likely attack vector is web‑based interaction with the Special:ApiSandbox page, where an attacker can provide malicious input that is stored and later rendered to users, producing client‑side code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest stable MediaWiki release that contains the fix for the XSS flaw.
  • Disable or remove the deprecated module that triggers the vulnerability and ensure that Special:ApiSandbox input is properly escaped before rendering, following CWE‑79 best practices.
  • Verify that vendor advisories confirm no additional XSS paths remain and monitor for new patches.

Generated by OpenCVE AI on August 13, 2026 at 12:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Wikimedia
Wikimedia mediawiki
Vendors & Products Wikimedia
Wikimedia mediawiki
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Stored i18n XSS in Special:ApiSandbox when a deprecated module is selected
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 0, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
wikimedia-foundation
Published
Updated
Jul 1, 2026, 2:45 PM
Reserved
Jun 27, 2026, 1:32 PM
Status
Analyzed
Published
Jul 1, 2026, 3:17 PM
Modified
Oct 25, 2026, 5:10 PM
Severity
Moderate
Public date
Jul 1, 2026, 2:24 PM