# CVE-2026-77610: Semantic MediaWiki has a query debug output XSS (`DebugFormatter`)

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-09-18T16:53:23.000Z
- Modified: 2026-09-24T21:22:19.873Z
- Also known as: GHSA-q5fm-9mx6-44f4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- SemanticMediaWiki SemanticMediaWiki: < 7.2.0
- mediawiki/semantic-media-wiki (Packagist): before 7.2.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-q5fm-9mx6-44f4> (web)
- <https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0> (web)
- <https://github.com/SemanticMediaWiki/SemanticMediaWiki> (package)

## Sources

- CVE List: [CVE-2026-77610](https://www.cve.org/CVERecord?id=CVE-2026-77610), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-q5fm-9mx6-44f4](https://github.com/advisories/GHSA-q5fm-9mx6-44f4), CC-BY-4.0, modified 2026-09-18
- NVD: [CVE-2026-77610](https://nvd.nist.gov/vuln/detail/CVE-2026-77610), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-77610 · Whole record: https://cve.day/CVE-2026-77610.json · Rebuilt by cve.day 2026-11-25T22:59:39.638Z
