Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain editor account on ElasticStore wiki
-
DeliveryStore XSS payload in Text property or subobject name
-
ExploitSend victim crafted Special:Ask link (native_result/score_set)
-
ExecutionVictim opens link, unescaped output renders
-
PersistScript executes in victim session
-
ImpactAbuse admin CSRF token to alter rights or site JS/CSS
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 all of: (1) the wiki is configured with the ElasticStore backend ($smwgDefaultStore = 'SMW\Elastic\ElasticStore'), which is a supported but non-default setting; (2) the attacker holds an account with the 'edit' right to store the payload in a Text property ({{#set: Has text=<img src=x onerror=...>}}) or in a subobject name ({{#subobject:<svg onload=...>|...}}), noting the payload must avoid characters the sort normalizer strips ([, ], /) or that the subobject name forbids (=, space, leading dot in first five chars); and (3) a victim must open a crafted Special:Ask link carrying native_result=1 or score_set=1 (the latter also needs sort=es.score). Limiting factors: the ElasticStore precondition, the authenticated editor requirement, and the required victim interaction all narrow realistic exposure below the raw network-vector reading. The only complete fix per the vendor is updating to 7.4.1, which escapes the sinks and gates these debug flags behind the smw-admin right. |
| Impact | This is a stored cross-site scripting flaw (CWE-79) rated moderate, and the signals are internally consistent rather than conflicting. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N) shows a network-reachable but authenticated (PR:L - an account with edit rights) issue that depends on victim interaction (UI:P - opening a crafted link), which matches the detailed GHSA advisory. There is no CISA KEV entry and no EPSS score in the input, so exploitation status is 'no public exploit identified at time of analysis' in the KEV sense; however the GHSA advisory ships concrete reproduction steps and PoC scripts, so a public PoC reference exists but it is not verified as a packaged working exploit. The vuln.today decision label is 'this_month' (not act_now/emergency), and a vendor patch is available (fixed in 7.4.1), so this is a plan-and-patch priority rather than an emergency. Two material gatekeepers hold real-world risk down: exploitation only works on wikis configured with the non-default ElasticStore backend ($smwgDefaultStore = 'SMW\Elastic\ElasticStore'), and it requires an attacker who already holds edit rights plus a victim who clicks the crafted link. The upside for an attacker is significant where conditions are met - scripting in an administrator's session can abuse CSRF tokens to change user rights or edit site JS/CSS - but the ElasticStore precondition means this is targeted rather than broadly automatable. |
| Exploit ScenarioDerived | On a wiki running the ElasticStore backend, a low-privileged editor stores a payload such as |
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 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.
RemediationAI
Update to Semantic MediaWiki 7.4.1, which is the vendor's only complete fix: it wraps the native_result output in htmlspecialchars(), escapes all three cells in ScoreSet::asTable() with htmlspecialchars((string)...), and restricts native_result, score_set and q_engine to users holding the smw-admin right via a new canViewQueryDebugOutput() check (commit fca9922835f4353e67a71cfef4d527d46e7c3ad3; release https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.4.1). If immediate upgrade is not possible, the durable interim measure is to stop using ElasticStore as the default store ($smwgDefaultStore), which removes the vulnerable query path entirely - at the cost of losing Elasticsearch-backed search, faceting and large-wiki performance - or to restrict the 'edit' right to trusted users, which limits who can plant payloads but does not protect against a compromised or malicious editor account and leaves the sinks reachable. Removing editing access to the relevant property and subobject namespaces and tightening who can create Text-typed properties narrows the injection surface but is not a substitute for the patched release. Gating the debug parameters behind smw-admin or $wgShowDebug, as the vendor now does upstream, should be treated as defence in depth only.
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
The root cause is CWE-79: query-engine diagnostics are emitted into HTML without neutralisation. On wikis configured with $smwgDefaultStore = 'SMW\Elastic\ElasticStore', Special:Ask accepts the GET parameters native_result=1, score_set=1 and q_engine=sql_store with no permission check. With native_result=1 the raw Elasticsearch response is passed through json_encode() (no JSON_HEX_TAG, no htmlspecialchars) and placed inside a <pre> element in SpecialAsk.php; JSON encoding does not neutralise '<' or '>'. Because Elasticsearch returns the stored string of a sorted Text, Page or URL property in hits[].sort - and SMW's standard_sort_normalizer only strips '[', ']' and '/' - an ordinary editor can store '<img src=x onerror=...>' in a Text property via {{#set:}}, and the payload survives indexing intact. A second path routes through ScoreSet::asTable(), which concatenates subject hashes (WikiPage::getHash(), which embeds the editor-chosen subobject name from {{#subobject:...}}) into <td> cells without escaping; this variant additionally requires sort=es.score so that track_scores is enabled and _score is non-null. The assembled string is wrapped with Html::rawElement and passed to OutputPage::addHTML(), so it is treated as raw HTML. Notably, the sibling format=debug output of the same QueryEngine already maps '<' and '>' to entities, showing these two debug paths were simply missed; they are developer diagnostics rather than end-user features.
Know when Semanticmediawiki 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
PR:L because the attacker needs edit rights to store the payload; UI:R because the victim must open the crafted link; S:C as script runs in the victim's session; C:L/I:L/A:N for session-scoped script 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 Special:Ask with the ElasticStore backend, allowing users with edit rights to inject script through unescaped native_result and score_set output. Attackers can store markup in a Text property or subobject name, then lure victims including administrators to a crafted Special:Ask link to execute script in their session.
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 9More in Semanticmediawiki
View allStored cross-site scripting in Semantic MediaWiki 3.1.0 through 6.x lets users with the MediaWiki 'edit' right inject ar
Reflected cross-site scripting in Semantic MediaWiki 7.0.0 through 7.1.0 lets an unauthenticated attacker execute arbitr
Reflected cross-site scripting in Semantic MediaWiki 7.1.0 and earlier lets an unauthenticated remote attacker inject ar
Unauthenticated CPU and memory exhaustion in Semantic MediaWiki 3.0.0 up to (but not including) 7.3.1 allows remote atta
Semantic MediaWiki before 7.3.1 exposes Special:PropertyLabelSimilarity without an administrator restriction, and a call
Quadratic CPU consumption in Semantic MediaWiki's term parser gives unauthenticated visitors a way to tie up PHP search
Semantic MediaWiki 2.5.0 through 7.3.0 lets an editor with ordinary page-edit permission exhaust server CPU, memory and
Semantic MediaWiki 2.5.0 through 7.3.1-alpha applies annotation-driven page protection without any authorization check,
Cross-site request forgery in Semantic MediaWiki's Special:SMWAdmin page allows an attacker to drive destructive mainten
Semantic MediaWiki 7.3.0 through 7.3.1-alpha fails to authorize the target page in its smwtask update task, letting a ca
EUVD-2026-123082
GHSA-jq55-8pqw-g267
NVD
CVE.org
EPSS
VulDB
Exploit-DB