{"id":"CVE-2026-116874","kind":"vulnerability","aliases":["CVE-2026-116874"],"related":[],"title":"SemanticMediaWiki: reflected XSS in Special:Ask lets attackers run scripts","description":"SemanticMediaWiki from 3.1.0 before 7.3.1 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject scripts through the unescaped default parameter in JsonResultPrinter. Attackers can lure victims to a crafted Special:Ask link with a zero-result query and request_type=special_page, executing JavaScript in the wiki origin to steal sessions or CSRF tokens.","summary":"SemanticMediaWiki versions from 3.1.0 before 7.3.1 do not escape the default parameter in JsonResultPrinter, so a crafted Special:Ask link can inject JavaScript. A lured user who opens that link runs the script in the wiki's origin, where it can steal sessions or CSRF tokens.","severity":"medium","cvss":6.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["mediawiki","package","self-hosted","semantic-mediawiki","wiki"],"not_affected_if":["extension-not-installed","version-outside-range"],"how_to_check":"- Check the installed SemanticMediaWiki version in the wiki's Special:Version page or the `composer.lock` file for `mediawiki/semantic-media-wiki`\n- Confirm whether the wiki serves Special:Ask with the JSON result printer enabled (unknown from sources)","fix":"- Upgrade SemanticMediaWiki to `7.3.1` or later\n- Until upgraded, unknown from sources whether a configuration workaround exists","status":"open","published_at":"2026-10-27T11:17:29+00:00","first_seen_at":"2026-10-27T11:31:27+00:00","triaged_at":"2026-10-27T11:32:07+00:00","updated_at":"2026-10-27T11:32:07+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-27T11:32:07Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade SemanticMediaWiki to `7.3.1` or later\n- Until upgraded, unknown from sources whether a configuration workaround exists","reach":"internet","title":"SemanticMediaWiki: reflected XSS in Special:Ask lets attackers run scripts","impact":"medium","summary":"SemanticMediaWiki versions from 3.1.0 before 7.3.1 do not escape the default parameter in JsonResultPrinter, so a crafted Special:Ask link can inject JavaScript. A lured user who opens that link runs the script in the wiki's origin, where it can steal sessions or CSRF tokens.","category":"package","nicknames":[],"who_cares":["mediawiki","semantic-mediawiki","self-hosted","wiki"],"confidence":0.7,"needs_auth":"no","worst_case":"Attacker runs scripts in users' browsers, stealing sessions and CSRF tokens","analyst_note":"","how_to_check":"- Check the installed SemanticMediaWiki version in the wiki's Special:Version page or the `composer.lock` file for `mediawiki/semantic-media-wiki`\n- Confirm whether the wiki serves Special:Ask with the JSON result printer enabled (unknown from sources)","needs_analyst":false,"not_affected_if":["version-outside-range","extension-not-installed"],"who_is_affected":"Wikis running SemanticMediaWiki from 3.1.0 up to but not including 7.3.1 are exposed, because the flaw is reachable by any anonymous visitor who follows a crafted Special:Ask link. Wikis on versions outside that range, or without the extension installed, can skip it.","user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000647,"input_tokens":3377,"output_tokens":619,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-116874':13A,16A '-2026':12A,15A '3.1.0':29B,74C '7.3.1':31B,76C 'allow':86C 'ask':6A,44B,107C 'attack':8A,88C,99C 'contain':77C 'craft':42B,105C 'cross':81C 'cross-sit':80C 'csrf':70B,130C 'cve':11A,14A 'default':36B,95C 'escap':34B 'execut':120C 'host':21B 'inject':47B,90C 'javascript':48B,121C 'jsonresultprint':39B,98C 'let':7A 'link':45B,55B,108C 'lure':50B,101C 'mediawiki':17B,24B 'open':53B 'origin':63B,125C 'packag':18B 'page':119C 'paramet':37B,96C 'queri':114C 'reflect':2A,79C 'request':116C 'result':113C 'run':9A,56B 'script':10A,58B,83C,91C 'self':20B 'self-host':19B 'semant':23B 'semantic-mediawiki':22B 'semanticmediawiki':1A,26B,72C 'session':68B,128C 'site':82C 'special':5A,43B,106C,118C 'steal':67B,127C 'token':71B,131C 'type':117C 'unauthent':87C 'unescap':94C 'user':51B 'version':27B 'victim':102C 'vulner':84C 'wiki':25B,61B,124C 'xss':3A 'zero':112C 'zero-result':111C","nicknames":[],"mitigations":[],"who_affected":"Wikis running SemanticMediaWiki from 3.1.0 up to but not including 7.3.1 are exposed, because the flaw is reachable by any anonymous visitor who follows a crafted Special:Ask link. Wikis on versions outside that range, or without the extension installed, can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-27T11:17:29+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-116874","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116874","severity":null,"published_at":"2026-10-27T11:17:29+00:00","modified_at":"2026-10-27T11:17:29+00:00","first_seen_at":"2026-10-27T11:31:27+00:00","fetched_at":"2026-10-27T11:31:27+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}