GitHub Advisoryadvisory · Packagist
GHSA-3jp5-3h47-28qf Semantic MediaWiki has reflected XSS in Special:Ask plain table headers
MEDIUM
Official page ↗
- Aliases
- CVE-2026-77606
- Ecosystem
- Packagist
- Packages
- mediawiki/semantic-media-wiki
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2026-09-18
Affected packages
• Packagist mediawiki/semantic-media-wiki: < 7.2.0 → fixed in 7.2.0
Description
Failure mode
When `headers=plain`, table header text was emitted into `` 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.
Related
Alias · CVE (1)
- CVE-2026-77606 Semantic MediaWiki is a free, open-source extension to MediaWiki that lets users store and query data within the wiki's pages. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness