GHSA-3jp5-3h47-28qfmedium6.1
Semantic MediaWiki has reflected XSS in Special:Ask plain table headers
Impact
When headers=plain, table header text was emitted into via a raw HTML path. User-controlled mainlabel content could therefore become executable HTML.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
mediawiki/semantic-media-wiki Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 7.2.0Ecosystem versions | 7.2.0 |
Version evidence: OSV · GHSA-3jp5-3h47-28qf
View original version evidence (78 explicit versions)
Original source 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
TableResultPrinternow 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.