upload.wikimedia.org currently serves image maps (.map files) that are generated by EasyTimeline/ploticus as XML if they are valid XML and only contain one <area> tag (this is only an assumption based on my testing though as I'm not sure where/how the content type is decided). An example for this is https://upload.wikimedia.org/wikipedia/en/timeline/46e9y6gya1583ddr1q98xxe7uu2ahfd.map.
This is suboptimal because it's possible to insert double quotes through links and break out of the href attribute because neither ploticus nor EasyTimeline escape double quotes. Example: https://upload.wikimedia.org/wikipedia/en/timeline/m81ehl7ex9gc1lpyaqoou57vbag7a9u.map (not served as XML as it's not valid XML)
Timeline will error with Invalid image map generated by EasyTimeline (at least if the XML is not valid), but the files are still uploaded, and it's possible to access them by calculating the hash locally (which I did to access the example above).
Files served as application/xml can be used for XSS, e.g. by using <a:script xmlns:a="http://www.w3.org/1999/xhtml">alert(1)</a:script>.
The only reason why AFAICS it's not possible to abuse this for XSS right now is that it's not possible to add a space, tab or a newline into an attribute when breaking out of it, because the EasyTimeline script splits on newlines, replaces tabs with spaces and ploticus then replaces spaces with underscores in links. Those characters are required to separate two attributes in XML 1.0, and unlike in HTML, / is not supported.
However, I don't think we should rely on this behaviour, and I'm not familiar enough with the XML specification (or whatever is used to decide whether to serve the file as XML) to be able to tell whether there could be a bypass.