# GHSA-7XV3-GF2G-498H: Semantic MediaWiki affected by Special:Ask table sep parameter reflected XSS

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-09-18
- Modified: 2026-09-18

## Tracked as

- [CVE-2026-77607](https://cve.now/CVE-2026-77607.md): Semantic MediaWiki affected by Special:Ask table sep parameter reflected XSS

## Affected versions

- mediawiki/semantic-media-wiki (Packagist): fixed in 7.2.0

## Description

#### Failure mode

`sep` was inserted verbatim into the HTML that joins a table cell's values. This made it possible to inject HTML through the separator value. The same unsanitised table HTML is produced both for the standard `Special:Ask` render and for its raw request output (`request_type=raw`), so the injection was reachable without authentication.

#### Remediation

- In all non-wiki output modes (HTML, raw request, file), `sep` is escaped unless it is a safe `<br>` variant.
- This preserves legitimate line-break separators while blocking markup injection.

#### Maintenance note

If the table renderer ever gains richer separator semantics, keep the whitelist explicit. Do not expand the allowed HTML surface casually.

## References

- https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-7xv3-gf2g-498h
- https://github.com/SemanticMediaWiki/SemanticMediaWiki
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0

Page: https://cve.now/GHSA-7XV3-GF2G-498H

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
