Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft Special:Ask URL with malicious mainlabel + headers=plain
-
DeliveryDeliver link to authenticated wiki user
-
ExploitVictim opens crafted query page
-
ExecutionUnescaped header renders in <th>
-
PersistScript executes in victim session
-
ImpactSteal session/perform 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 | Exploitation requires the Special:Ask result printer to be invoked with |
| Impact | This is a reflected cross-site scripting flaw (CWE-79) in Semantic MediaWiki's Special:Ask when |
| Exploit ScenarioDerived | An attacker crafts a Special:Ask query URL where the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Reflected cross-site scripting (CWE-79) in Semantic MediaWiki 7.1.0 and earlier allows a crafted URL to execute script in a victim's browser session; the flaw is reached through the Special:Ask result printer when it is invoked with headers=plain and an attacker-controlled mainlabel value, which is written into the table header (<th>) through a raw HTML path instead of being escaped for the output context. The vulnerability is rated CVSS 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), meaning no authentication is needed to craft the link, but exploitation depends on the victim opening the malicious URL (user interaction is required) and impact scales with the victim's wiki privileges. No public exploit code and no confirmed active exploitation were identified at time of analysis; the issue is fixed in Semantic MediaWiki 7.2.0, so deployments on 7.1.0 or earlier that expose Special:Ask queries are the realistic exposure.
RemediationAI
Vendor-released patch: upgrade to Semantic MediaWiki 7.2.0, which is the first version containing the output-context escaping fix in the HTML/plain-header branch of TableResultPrinter (release notes: https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0, advisory: https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-3jp5-3h47-28qf). Because this is a reflected XSS requiring the victim to open a crafted URL, temporary compensating controls until the upgrade is applied include restricting who can reach Special:Ask (for example via MediaWiki group permissions or a web application firewall rule blocking requests where headers=plain is combined with a mainlabel parameter containing markup - trade-off: legitimate plain-header queries with unusual labels may break), and reviewing whether untrusted users can set mainlabel content at all. Deploying a Content Security Policy that disallows inline script can reduce the impact of a successful injection but may break other wiki extensions, and note that the flaw is limited to plain-header rendering, so forcing non-plain header modes on any exposed queries eliminates the vulnerable path at the cost of losing that presentation format. Since no public exploit code was identified at time of analysis, prioritization should focus on internet- or broad-audience wikis that expose Special:Ask to unauthenticated visitors.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Semantic MediaWiki extends MediaWiki with structured, queryable data, and its Special:Ask page renders query results through pluggable result printers; the affected component is the TableResultPrinter (packaged as composer/mediawiki/semantic-media-wiki). The root cause is the classic CWE-79 improper neutralization of user-supplied input during web page generation: when the plain header mode (headers=plain) is selected, the header string derived from the user-controllable mainlabel parameter is passed to the table renderer and emitted directly into the <th> element via a raw HTML path rather than through output-context escaping. Because the header value is display data and not a structural token, the correct fix is at the sink - the renderer owns the final HTML emission - and the upstream patch adds output-context escaping in the HTML/plain-header branch only, leaving non-plain, safe rendering modes untouched. The flaw is reflected rather than stored, so it requires the attacker to deliver a crafted Special:Ask URL, and the scope change (S:C) in the assessed vector reflects that script executing in the victim's browser context can act on the wider MediaWiki application beyond the vulnerable component.
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Reflected XSS via a crafted Special:Ask URL needs no attacker privileges (PR:N) but victim interaction (UI:R); browser-context execution crosses trust boundary (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (https://github.com/SemanticMediaWiki/SemanticMediaWiki).
CVSS VectorVendor: https://github.com/SemanticMediaWiki/SemanticMediaWiki
Lifecycle Timeline
1DescriptionCVE.org
Failure mode
When headers=plain, table header text was emitted into <th> via a raw HTML path. User-controlled mainlabel content could therefore become executable HTML.
Remediation
TableResultPrinternow applies output-context escaping before passing plain headers to the table renderer.- The fix is limited to the HTML/plain-header branch so safe rendering modes are unaffected.
Why this is the right layer
The header value is not a structural token; it is display data. Sanitizing it at the sink is correct because the renderer owns the final HTML emission.
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
Priority Score
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-83171
GHSA-3jp5-3h47-28qf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB