Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker obtains page-edit rights
-
DeliverySave page with crafted data-search cell attribute
-
ExploitVictim views stored page
-
ExecutionDataTables decodes attribute into innerHTML
-
PersistScript executes in viewer/admin session
-
ImpactSteal CSRF token and hijack account
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 page-edit rights on a Semantic MediaWiki instance (version 3.0.0 through 7.4.1-alpha, before 7.4.1) whose DataTables table-printer integration (ext.smw.tableprinter) is active. The attacker must author a page that triggers loading of that module - an #ask query with class=datatable - and include a hand-written table carrying the .smw-datatable/.datatable classes with a data-search or data-filter cell attribute holding HTML entity-encoded markup containing an '&'; the MediaWiki Sanitizer permits these non-reserved data-* attributes. Exploitation is LIMITED by: needing edit privileges (PR:L, not unauthenticated), needing a victim to view the page (UI:P, though no click or typing is required once viewed), and the vulnerability being confined to the stated version range. Fixed in 7.4.1, which strips author-supplied data-search/data-filter attributes before DataTables reads them; upgrading is the vendor's remediation. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, 5.1 medium) is internally consistent with the mechanism: network-reachable, low complexity, but requiring an authenticated editor (PR:L) and a victim who merely views the page (UI:P, passive). It is not in CISA KEV and no EPSS score was supplied, so there is no signal of active or widespread exploitation. The vuln.today decision label is 'this_month', which matches a stored XSS that needs an authenticated author rather than an unauthenticated internet-wide trigger. The signals are coherent - the main driver of real risk is the privilege-escalation potential: the lowest wikitext-author privilege can land script in the session of any reader, including administrators, enabling CSRF-token theft and account takeover. No conflicting signals were found between the vector, description, and SSVC-style framing; the key limiter is that the attacker must already hold page-edit rights on a vulnerable instance. |
| Exploit ScenarioDerived | An attacker with ordinary page-edit rights saves a wiki page containing an SMW #ask table with class=datatable plus a hand-authored .smw-datatable table whose first-row cell carries an entity-encoded data-search attribute such as data-search="<img src=x onerror=...>&". When any other logged-in or anonymous user views the page, DataTables decodes the attribute and assigns it via innerHTML, firing the payload with no clicks. The vendor GHSA advisory includes a complete working proof of concept, verified by a headless-Chrome reproduction that rendered the injected marker (XSS-FIRED). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Stored cross-site scripting in Semantic MediaWiki's DataTables table-printer (ext.smw.tableprinter) allows any user with page-edit rights to plant markup in a cell's data-search or data-filter attribute that executes in the browser of every reader of the page, administrators included. The integration automatically initialises every element carrying the .smw-datatable class - including tables an author wrote in wikitext - and the bundled DataTables 2.x build reads those attributes with getAttribute(), decodes the value, and for any value containing an '&' assigns it to a detached div through innerHTML, so an entity-encoded payload slips past the MediaWiki Sanitizer's allowance for non-reserved data-* attributes. Releases 3.0.0 through 7.4.0 are affected and 7.4.1 fixes it; the vendor advisory publishes reproduction steps that demonstrate the handler firing, though there is no confirmed active exploitation (not in CISA KEV) and the flaw requires edit privileges plus a victim viewing the page.
RemediationAI
Upgrade to Semantic MediaWiki 7.4.1, which is the vendor's remediation and the only complete fix: the patched ext.smw.tableprinter.js (commit db7f59461a7815416a719b71ce48fb76481ecaf2) removes data-search and data-filter attributes from cells before DataTables reads them, closing the innerHTML sink while leaving data-order and data-sort intact so SMW's numeric and date sorting continues to work - verify after upgrading that sortable SMW table columns still order correctly, since the fix intentionally narrows which attributes are stripped. Deployment details are in GHSA-gg2q-rc52-22pp and the 7.4.1 release notes; the advisory additionally recommends the structural fix of initialising only SMW-generated tables via a reserved data-mw-smw-datatable marker (which wikitext cannot set) instead of the .smw-datatable/.datatable classes, and of defining explicit columns/columnDefs data so DataTables' attribute-based orthogonal data detection is not used at all. Where upgrading cannot be done immediately, the exposure is bounded by edit privileges - restricting page-edit rights to trusted users or requiring review of wikitext contributions reduces who can plant the payload, at the cost of open collaboration on the wiki - and because the payload is triggered by the table-printer module, avoiding #ask tables that use class=datatable removes the injection surface on affected pages, though this degrades table filtering and search functionality. Note that the two prior data-* fixes in this project (GHSA-hg8h-557g-q8pp, GHSA-4wj6-wmjp-pmhh) do not mitigate this issue.
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
Semantic MediaWiki's table result printer ships a JavaScript module (res/smw/printer/ext.smw.tableprinter.js) that starts the bundled DataTables library on any element matching the .smw-datatable class and on .datatable tables nested inside it; TableResultPrinter.php loads that module for any #ask query using format=table with class=datatable. Because selection is class-based rather than marker-based, author-written wikitext tables are initialised too. DataTables 2.x (2.1.6 is bundled) treats a first-row cell's data-search or data-filter attribute as orthogonal filter data for that column, reads it via getAttribute() - which returns the entity-decoded string - and, when the decoded value contains '&', writes it into a detached div using innerHTML. The MediaWiki Sanitizer permits these non-reserved data-* attributes, so an ordinary editor can store '<img src=x onerror=...>' and have it execute on DataTables' first draw with no click or typing. This is CWE-79 (improper neutralisation of input during web page generation), a distinct sink from two earlier fixes in the same project - GHSA-hg8h-557g-q8pp, which renamed a SMW attribute to a reserved data-mw-* name, and GHSA-4wj6-wmjp-pmhh, which removed tippy's allowHTML - neither of which changed how the DataTables integration selects tables or reads cell attributes. The vendor fix strips data-search and data-filter from non-SMW cells before DataTable() is called while deliberately preserving data-order and data-sort, which only feed sorting and type detection and carry SMW's own numeric and date sort values.
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:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated editor sets PR:L, stored XSS firing in a viewer's browser crosses a trust boundary so S:C with UI:R, and script-in-session yields limited C:L/I:L and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Semantic MediaWiki 3.0.0 before 7.4.1 contains a stored cross-site scripting vulnerability in the DataTables integration that initialises author-written smw-datatable tables unchanged. Users with page-edit rights can add HTML entity-encoded markup in data-search or data-filter cell attributes, executing script in viewers' browsers including administrators.
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.
Related Vulnerabilities in Semantic MediaWiki XSS and Authorization Flaws
View all 9MediaWiki 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-123075
GHSA-cqj6-mhrj-q9qw
NVD
CVE.org
EPSS
VulDB
Exploit-DB