Description
Semantic MediaWiki 4.2.0 before 7.4.1 contains a stored cross-site scripting vulnerability in OptionsBuilder::profiles() that allows users with the smw-schemaedit right to inject markup. Attackers can save FACETEDSEARCH_PROFILE_SCHEMA profile keys or labels that break out of option elements, executing scripts for every Special:FacetedSearch visitor including administrators.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SemanticMediaWiki | SemanticMediaWiki | 4.2.0 – < 7.4.1 | 7.4.1 |
References
- GitHub Security Advisory (GHSA-cw86-j46r-2x7x) vendor-advisory
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/92999fc0de74324aaa35bfd3676cd4d145d2ac06 patch
- SemanticMediaWiki 7.4.1 Release Notes release-notes
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/MediaWiki/Specials/FacetedSearch/OptionsBuilder.php#L27-L52 technical-description
- VulnCheck Advisory: Semantic MediaWiki 4.2.0 before 7.4.1 Stored XSS via Special:FacetedSearch third-party-advisory