# CVE-2026-116874: SemanticMediaWiki reflected XSS in JsonResultPrinter

Source: https://junglewise.ai/threats/cve-2026-116874-semanticmediawiki-from-3-1-0-before-7-3-1-contains-a-reflected  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-27. Updated: 2026-10-27  
License: CC BY 4.0 with a link back

CVE-2026-116874 · Severity: medium · CVSS 6.1 · Published 2026-10-27

SemanticMediaWiki is a semantic search and data management extension for MediaWiki wikis. A reflected cross-site scripting (XSS) vulnerability in its JsonResultPrinter component allows unauthenticated attackers to inject and execute malicious JavaScript by crafting a malicious Special:Ask link. An attacker could exploit this to steal session cookies or CSRF tokens from victims, compromising their wiki accounts and enabling unauthorized actions.

Technologies: [SemanticMediaWiki](https://junglewise.ai/threats/technologies/semanticmediawiki). Vendors: [SemanticMediaWiki](https://junglewise.ai/threats/vendors/semanticmediawiki).

## Quick answers

**Is CVE-2026-116874 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-116874 being exploited in the wild.

**How severe is CVE-2026-116874?** Medium severity, with a CVSS score of 6.1, published 27 October 2026.

**Which products and versions are affected?** SemanticMediaWiki 3.1.0 before 7.3.1.

**Is there a fix for CVE-2026-116874?** Yes: fixed in 7.3.1. Until then: Set Content-Type: application/json header for request_type=special_page responses to prevent browser interpretation as HTML, or apply HTML escaping (htmlspecialchars()) to the default parameter in JsonResultPrinter::getResultText().</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-09-28"},{"kind":"advisory","at":"2026-10-27"}] Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-116874 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-116874?** Check whether you run SemanticMediaWiki at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 7.3.1

Set Content-Type: application/json header for request_type=special_page responses to prevent browser interpretation as HTML, or apply HTML escaping (htmlspecialchars()) to the default parameter in JsonResultPrinter::getResultText().</anigation>
<parameter name="timeline">[{"kind":"disclosed","at":"2026-09-28"},{"kind":"advisory","at":"2026-10-27"}]

## Technical details

The vulnerability exists in JsonResultPrinter::getResultText(), which returns the user-supplied default parameter without HTML escaping when a zero-result query is executed in SMW_OUTPUT_FILE mode via Special:Ask with request_type=special_page. The response is served without a Content-Type header, causing browsers to render it as text/html and execute injected scripts. An unauthenticated attacker can craft a query guaranteed to return zero results and inject arbitrary JavaScript through the default parameter, which is echoed directly into the response.

## Affected products

- SemanticMediaWiki SemanticMediaWiki 3.1.0 before 7.3.1

## References

- [https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-574v-j8hf-88h3](https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-574v-j8hf-88h3)
- [https://www.vulncheck.com/advisories/semanticmediawiki-3.1.0-before-7.3.1-reflected-xss-via-jsonresultprinter-default-parameter](https://www.vulncheck.com/advisories/semanticmediawiki-3.1.0-before-7.3.1-reflected-xss-via-jsonresultprinter-default-parameter)

## Related threats

- [SemanticMediaWiki reflected XSS in extended search profile](https://junglewise.ai/threats/cve-2026-116892-semanticmediawiki-from-3-1-0-before-7-3-1-contains-a-reflected)
- [SemanticMediaWiki reflected XSS in Special:FacetedSearch](https://junglewise.ai/threats/cve-2026-116891-semanticmediawiki-from-4-2-0-before-7-2-1-contains-a-reflected)
- [SemanticMediaWiki stored cross-site scripting in tooltip module](https://junglewise.ai/threats/cve-2026-116884-semanticmediawiki-from-5-0-0-before-7-3-1-contains-a-stored)
- [SemanticMediaWiki reflected XSS in Special:Ask separator parameters](https://junglewise.ai/threats/cve-2026-116875-semanticmediawiki-from-3-0-0-before-7-3-1-contains-a-reflected)
