GitHub Advisoryadvisory · Packagist
GHSA-7xv3-gf2g-498h Semantic MediaWiki affected by Special:Ask table `sep` parameter reflected XSS
MEDIUM
Official page ↗
- Aliases
- CVE-2026-77607
- 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
`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 `` 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.
Related
Alias · CVE (1)
- CVE-2026-77607 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