# GHSA-3JP5-3H47-28QF: Semantic MediaWiki has reflected XSS in Special:Ask plain table headers

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

## Tracked as

- [CVE-2026-77606](https://cve.now/CVE-2026-77606.md): SemanticMediaWiki reflected cross-site scripting in Special:Ask table headers

## Affected versions

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

## Description

#### Failure mode

When `headers=plain`, table header text was emitted into `<th>` via a raw HTML path. User-controlled `mainlabel` content could therefore become executable HTML.

#### Remediation

- `TableResultPrinter` now applies output-context escaping before passing plain headers to the table renderer.
- The fix is limited to the HTML/plain-header branch so safe rendering modes are unaffected.

#### Why this is the right layer

The header value is not a structural token; it is display data. Sanitizing it at the sink is correct because the renderer owns the final HTML emission.

## References

- https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-3jp5-3h47-28qf
- https://github.com/SemanticMediaWiki/SemanticMediaWiki
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.2.0

Page: https://cve.now/GHSA-3JP5-3H47-28QF

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