The flexdiagrams-drawio-saveinfo system message is inserted as HTML by the FlexDiagrams extension, allowing for stored XSS.
Reproduction steps
- Create a Drawio diagram
- Go to /w/index.php?title=Drawio:Test2&action=editdiagram&uselang=x-xss (make sure to adjust the name of the diagram page, as it has to exist for the vulnerability to work)
Cause
The message is retrieved in the text output mode and inserted through an HtmlSnippet:
https://gerrit.wikimedia.org/g/mediawiki/extensions/FlexDiagrams/+/1ba4aff57096626b3ddb386d8c23c7c384613513/resources/ext.flexdiagrams.drawio.js#116
