Description
Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki's pages. Prior to version 7.2.0, query debug output (`format=debug`, or the `debug` request parameter on `Special:Ask`) is assembled by `SMW\Query\DebugFormatter` and emitted as raw HTML. Several of its sinks apply no output-context encoding, so attacker-controlled query input is reflected into the page without escaping. On `Special:Ask` the resulting string is concatenated into the page and sent through `OutputPage::addHTML`, never through the MediaWiki parser or Sanitizer. No special user right is required; an anonymous request suffices. This is a reflected XSS: the payload is taken from the request and echoed in the same response. Exploitation requires the query condition to target a text/blob-typed property (whose value is re-serialized verbatim); the predefined `_txt` properties (`Text`, etc.) that ship on every install satisfy this, so no attacker-created content is needed. Version 7.2.0 patches the issue.
Published: 2026-09-18
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Reflected XSS
Action: Patch
AI Analysis

Impact

The vulnerability occurs when the query debug output of Semantic MediaWiki is rendered as raw HTML without proper context encoding. An attacker can supply malicious script fragments as part of a query or the special request parameter on Special:Ask. Because the output is directly echoed back to the browser without passing through theWiki parser or sanitizer, the injected payload can be executed in the victim’s browser. This reflected XSS allows an attacker to perform actions such as session hijacking, defacement or further malicious activity, and it can be triggered with any anonymous web request.

Affected Systems

Semantic MediaWiki, the open‑source extension for MediaWiki, is affected in all releases before version 7.2.0. The flaw resides in the SMW\Query\DebugFormatter component that assembles debug output for the format=debug parameter on Special:Ask. Users of the extension should verify the installed version and consider it vulnerable if it is older than 7.2.0.

Risk and Exploitability

The CVSS score is 6.1, indicating a moderate severity reflected XSS. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires no special user rights; an attacker only needs to craft a request containing a malicious query or debug flag. The vulnerability is therefore easily exploitable by any anonymous collaborator or attacker who can influence a victim’s browser session.

Generated by OpenCVE AI on September 19, 2026 at 12:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Semantic MediaWiki to version 7.2.0 or later.
  • If an immediate upgrade is not possible, disable the debug output feature or remove the format=debug query parameter from the Special:Ask endpoint.
  • Restrict anonymous access to the Special:Ask page via MediaWiki permission settings or your web server configuration.
  • Monitor user traffic and logs for signs of reflected XSS exploitation attempts.

Generated by OpenCVE AI on September 19, 2026 at 12:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-q5fm-9mx6-44f4 Semantic MediaWiki has a query debug output XSS (`DebugFormatter`)
History

Fri, 18 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Description Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki's pages. Prior to version 7.2.0, query debug output (`format=debug`, or the `debug` request parameter on `Special:Ask`) is assembled by `SMW\Query\DebugFormatter` and emitted as raw HTML. Several of its sinks apply no output-context encoding, so attacker-controlled query input is reflected into the page without escaping. On `Special:Ask` the resulting string is concatenated into the page and sent through `OutputPage::addHTML`, never through the MediaWiki parser or Sanitizer. No special user right is required; an anonymous request suffices. This is a reflected XSS: the payload is taken from the request and echoed in the same response. Exploitation requires the query condition to target a text/blob-typed property (whose value is re-serialized verbatim); the predefined `_txt` properties (`Text`, etc.) that ship on every install satisfy this, so no attacker-created content is needed. Version 7.2.0 patches the issue.
Title Semantic MediaWiki has a query debug output XSS (`DebugFormatter`)
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-18T16:55:01.848Z

Reserved: 2026-08-20T20:48:20.508Z

Link: CVE-2026-77610

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-18T17:17:01.413

Modified: 2026-09-18T17:17:01.413

Link: CVE-2026-77610

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-19T13:00:12Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')