Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain wiki account with edit rights
-
DeliveryCraft wikitext with malicious data-subtab attribute
-
ExploitSave page storing XSS payload
-
ExecutionVictim views page, ext.smw.js writes attribute to innerHTML
-
PersistJavaScript executes in victim's browser context
-
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 | Requires an account with the MediaWiki 'edit' right to inject the payload via wikitext using the {{#tag:div|class=smw-subtab|data-subtab=...}} construct - this is the specific feature abused, because non-reserved data attributes such as data-subtab are settable from wikitext and ext.smw.js parses data-subtab of any .smw-subtab element as JSON and appends it to innerHTML. Exploitation is limited by: (1) needing edit privileges (open/anonymous-edit wikis lower this barrier, closed wikis raise it to authenticated users), (2) a victim must subsequently view the crafted page for the stored payload to fire, and (3) only affects installs running Semantic MediaWiki 3.1.0 through 6.x (fixed in 7.0.0). |
| Impact | This is a legitimate but moderate-severity stored XSS in the Semantic MediaWiki extension. The vendor CVSS of 8.6 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L) overstates real-world risk in two ways. First, PR:N conflicts with the advisory's own Impact statement, which says exploitation requires 'any user with the edit right' - injection is therefore authenticated (PR:L) on most non-open wikis, not truly unauthenticated. Second, C:H and UI:N are aggressive for a browser-side stored XSS: typical scoring is C:L/I:L, S:C (script executes in the victim's browser under the wiki's origin), and UI:R because a victim must view the crafted page. A publicly available exploit exists (a full PoC and screenshots are in the GHSA advisory), so exploitability is proven and trivial to reproduce, but there is no EPSS score provided and no CISA KEV listing - status: publicly available exploit code exists, not confirmed active exploitation. No SSVC data was provided. Net: real and easily reproducible, worth patching promptly on multi-user wikis, but the effective risk is that of a self-contained privilege-escalation/session-hijack primitive requiring an account with edit rights, not a mass-exploitable unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker holding edit rights on a Semantic MediaWiki-enabled wiki creates or edits a page containing a {{#tag:div}} with class=smw-subtab and a crafted data-subtab attribute whose decoded JSON value is an HTML string like "<img src='' onerror=alert(1)>". When any other user (including an admin) views the page, ext.smw.js reads the attribute via .dataset and appends it to innerHTML, executing the attacker's JavaScript in the victim's session. A working PoC is published in the GHSA advisory, so weaponization (e.g., session/cookie theft or admin-action forgery) is straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Stored cross-site scripting in Semantic MediaWiki 3.1.0 through 6.x lets users with the MediaWiki 'edit' right inject arbitrary HTML and JavaScript via the data-subtab attribute, with execution occurring when a victim views the affected page. Publicly available exploit code exists, but the independent assessment rates this as a moderate-severity issue because it requires edit privileges and user interaction. The flaw is fixed in Semantic MediaWiki 7.0.0.
RemediationAI
Upgrade Semantic MediaWiki to version 7.0.0, which is the vendor-released patch for this issue; see the release notes at https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.0.0 and the advisory at https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-hg8h-557g-q8pp. If upgrading immediately is not possible, restrict the MediaWiki 'edit' right to trusted users only, which lowers exposure but does not eliminate the risk if trusted accounts are compromised and is impractical for open-edit wikis. Disabling or uninstalling the Semantic MediaWiki extension prevents exploitation of this code path but removes semantic data storage and query functionality. Because the injected payload is stored and fires when another user views the page, there is no reliable server-side content filter workaround short of patching or disabling the extension; limiting page viewing or monitoring for suspicious data-subtab attributes is only a compensating control with incomplete coverage.
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 is a MediaWiki extension that stores and queries structured data within wiki pages. The root cause is CWE-79, improper neutralization of user-controllable input during web page generation: in ext.smw.js, the data-subtab attribute of any element with the smw-subtab class is parsed as JSON and appended to the element's innerHTML. Because most data attributes, including non-reserved ones such as data-subtab, can be set from wikitext, a user with edit rights can inject HTML and JavaScript through constructs like {{#tag:div|class=smw-subtab|data-subtab=...}}. The authoritative assessed vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, meaning remote exploitation requires a low-privileged authenticated user with 'edit' rights and a victim to view the crafted page; the impact is scoped to the victim's browser with low confidentiality and integrity impacts. The CPE cpe:2.3:a:semanticmediawiki:semanticmediawiki:*:*:*:*:*:*:*:* identifies the extension package, and the Composer package composer/mediawiki/semantic-media-wiki lists vulnerable versions >=3.1.0 and <7.0.0.
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:N/S:U/C:H/I:L/A:L
Injection requires edit rights (PR:L) and a victim must view the page (UI:R); XSS crosses into the victim's browser context (S:C) with limited confidentiality/integrity impact (C:L/I:L), no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki's pages. Versions starting in 3.1.0 and prior to 7.0.0 insert the unsanitized value of a data attribute into the DOM as HTML, allowing for stored XSS through wikitext. Version 7.0.0 patches the issue.
Technical POC Analysis
CWE-79 (Improper Neutralization of Input During Web Page Generation).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Semantic MediaWiki versions 3.1.0 through 6.x contain a stored cross-site scripting vulnerability that allows users with edit permissions to inject malicious scripts, which execute when other users view affected wiki pages. This poses a risk of session hijacking, data theft, and unauthorized actions, affecting any organization using these versions for internal or external collaboration. Leadership should prioritize remediation because public exploit code exists, increasing the likelihood of targeted attacks.
Apply vendor patch.
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-2025-210943
GHSA-hg8h-557g-q8pp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB