The securepoll-translation-select-import-source-api system message is inserted as raw HTML by the SecurePoll extension, allowing for stored XSS.
Reproduction steps
- Make sure $wgUseXssLanguage is set to true
- Create a poll
- Go to /wiki/Special:SecurePoll/translate/1?uselang=x-xss
- Click the blue import button
Cause
The message is retrieved in the plain() output mode and inserted as raw HTML through an HtmlSnippet:
https://gerrit.wikimedia.org/g/mediawiki/extensions/SecurePoll/+/52c7942f243c39f6a2ab332fc0125659e6c78d8d/modules/ext.securepoll.htmlform/translation/pages/SelectSourcePage.js#9

