Semantic MediaWiki XSS and Authorization Flaws
2026-11-11
Semantic MediaWiki 2.5.0 through 7.4.0 allows an authenticated ordinary editor to persist an 'Is edit protected' annotation that the extension's own TitleQuickPermissions hook then enforces, blocking edit, move and delete for all other editors, the attacker themself and default administrators who lack the configured edit-protection right. The flaw is an incomplete fix of GHSA-9824: the previous patch only suppressed the MediaWiki page_restrictions write while the user-supplied _EDIP value continues to be stored and continues to drive SMW's permission check, so an attacker can also inject {{#set:Is edit protected=true}} into a widely transcluded template to lock every page that includes it. Exploitation is conditional on the operator enabling the non-default $smwgEditProtectionRight setting and on the attacker already holding edit rights on at least one page or template; a detailed proof-of-concept reproduction is documented in the advisory and no confirmed active exploitation is known, though availability impact is rated High (CVSS 3.1 7.1, fixed in 7.4.1).
Authenticated editors can strip administrator edit and move protection from any protected page on a Semantic MediaWiki wiki (releases from 2.5.0 up to 7.4.0) by adding {{#set:Is edit protected=false}} to an unprotected template the page transcludes, after which a forced semantic update unprotects the page and logs the change under the protecting administrator's name. The flaw is only reachable when the non-default setting $smwgEditProtectionRight is enabled and the target page uses non-cascading protection, so default installations are not exposed; CVSS 7.1 reflects high integrity and low availability impact with no confidentiality impact, and exploitation requires a low-privileged authenticated account (CVSS:4.0 PR:L). The advisory includes a public proof-of-concept reproduction and an offline test harness, but active exploitation is not confirmed and the CVE is not in CISA KEV. Fixed in Semantic MediaWiki 7.4.1 (commit 32ca6d8f).
Reflected cross-site scripting in Semantic MediaWiki releases 2.4.0 through 7.4.x lets an unauthenticated attacker craft a Special:Ask link whose printout format uses the free date format (?Property#-F[...]); the bracketed text is handed to PHP's DateTime::format() and then emitted unescaped inside an HTML time element, so when a logged-in victim opens the link the attacker's script runs on the wiki origin. Impact is limited to HTML-rendered query printers, and inline {{#ask}} wiki output is sanitized by the MediaWiki parser and unaffected. A public proof-of-concept reproduction is documented in the upstream advisory, and the vendor has released 7.4.1 with escaping applied at the HTML boundary.
Semantic MediaWiki 3.0.0 through 7.4.0 running on the ElasticStore or SPARQLStore query backends allows an authenticated editor to exhaust server CPU and memory for every visitor by planting an acyclic fan-out of Concept: pages: each query against the top concept re-expands the shared sub-concepts once per path, so interpreter work grows roughly sixfold per nesting level until PHP aborts the request. Only the non-default Elastic/SPARQL backends are affected - the default SQLStore memoizes the shared concept segment and validates stored concept_size/concept_depth against query limits - and the attacker needs ordinary page-edit rights (CVSS 3.1 PR:L, AV:N), with the damage landing on unauthenticated readers who merely query the planted concept via a concept page view, Special:Ask, api.php?action=ask or {{#ask}}. The vendor advisory publishes a detailed reproduction recipe (nine concepts, six-way disjunction, OOM at fan depth 6 with memory_limit=128M), but that is a proof-of-concept reference rather than confirmed standalone exploit code; there is no KEV listing and no EPSS score in the supplied data. Impact is availability only, per-request in effect, though the planted pages make the condition persistent and repeatable.
Stored denial of service in Semantic MediaWiki's ElasticStore query backend: any user holding the default page-edit right can create two or more Concept: pages that reference each other (Concept:A -> Concept:B -> Concept:A), after which every query touching those concepts recurses without bound until PHP hits its memory or stack limit. All ElasticStore releases from 3.0.0 up to 7.4.0 are affected; wikis left on the default SQLStore or on SPARQLStore are not impacted because those engines already enforce a circular-reference guard. The staging step needs authenticated edit access, but the triggering request is unauthenticated (concept page view, Special:Ask, api.php?action=ask, or an {{#ask:}} embedded in any page), so one editor can repeatedly exhaust server resources on behalf of anonymous visitors; no dedicated public exploit code has been identified at time of analysis, although the vendor advisory documents a full reproduction procedure, and a vendor fix is released in 7.4.1.
Stored cross-site scripting in Semantic MediaWiki 3.0.0 through 7.4.0 lets any account holding the 'edit' right plant markup in a Text-typed property or in a subobject name, which is then echoed unescaped by Special:Ask when the wiki runs the ElasticStore backend. A victim - administrators included - who opens a crafted Special:Ask link carrying native_result=1 or score_set=1 executes the editor's JavaScript in the wiki origin, allowing the script to act with the victim's session (for example using the victim's CSRF token to edit pages, change user rights or alter site JS/CSS). Exposure requires the non-default ElasticStore configuration and victim interaction; a step-by-step proof-of-concept reproduction is published in the vendor advisory, with the native_result variant checked live against Elasticsearch 7.17.25 and the score_set variant verified at code level, but active exploitation is not confirmed (no KEV listing). The vendor-released fix is 7.4.1, which escapes both sinks and gates the debug flags behind the smw-admin right.
Stored cross-site scripting in Semantic MediaWiki (2.5.0 through 7.4.0) lets an authenticated user who can edit a Property: page plant markup that executes in the browser of anyone - administrators included - who later opens that property's Special:Browse factbox or calls the smwbrowse API with type=html. The flaw is authenticated (CVSS vector PR:L) and requires passive victim interaction (UI:R), and it only fires when the attacker's preferred property label embeds a literal ahead of the payload so that the vulnerable split leaks the attacker segment into the raw-appended title suffix. No CISA KEV entry or confirmed standalone exploit code was reported at time of analysis, though the upstream advisory documents a step-by-step reproduction; the vendor has released 7.4.1 as the fix.
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.
Stored cross-site scripting in Semantic MediaWiki's Special:FacetedSearch page lets a user holding the smw-schemaedit right (granted by default to the smwcurator group, deliberately separate from sysop and editinterface) plant markup in a FACETEDSEARCH_PROFILE_SCHEMA profile key that executes in the browser of every visitor, administrators included, whenever they open the special page. The vulnerability affects the packaged range 4.2.0 up to but not including 7.4.1 and is an authenticated, low-privilege-to-admin privilege jump rather than an anonymous attack: the curator can store the payload but only a victim's page load actually fires it. A public proof-of-concept reference exists, including reproduction steps in the vendor advisory; no confirmed active exploitation is reported in the available sources. Severity is moderate (vendor CVSS 4.0 base 4.8; independently assessed CVSS 3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N), with the vendor's own priority decision placing remediation in the current month rather than as an emergency.