StarCitizenWiki Extension Embed Video: Stored XSS via unsanitized service name in exception text
High severity
GitHub Reviewed
Published
Jun 19, 2026
in
StarCitizenWiki/mediawiki-extensions-EmbedVideo
•
Updated Jun 19, 2026
Description
Published to the GitHub Advisory Database
Jun 19, 2026
Reviewed
Jun 19, 2026
Last updated
Jun 19, 2026
Summary
When passing an unknown service name to embedvideo, an error message is rendered containing the invalid service name. The service name is not sanitized and can contain HTML.
Details
There is a hardcoded list of allowed services in a switch statement inside
EmbedServiceFactory#newFromNamehere. When the service name is not known, an exception is thrown with the service name injected into the message via sprintf here. This message is not sanitized and is marked as isHtml here. Similarly with{{evl:here.PoC
Impact
Stored XSS that allows arbitrary Javascript/HTML insertion on any page that a user can edit. It requires no interaction and executes in the wiki origin for every visitor to the page.
References