An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki before 1.39.7, 1.40.x before 1.40.3, and 1.41.x before 1.41.1. XSS can occur because of mishandling of the 0x1b character, as demonstrated by Special:RecentChanges#%1b0000000. https://phabricator.wikimedia.org/T355538
Created mediawiki tracking bugs for this issue: Affects: fedora-all [bug 2279230]