Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
if(/(\.svg)$/i.test(m))mxUtils.get(m,mxUtils.bind(this,function(Z){window.clearTimeout(ba);M&&C(Editor.createSvgDataUri(Z.getText()))}),function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)});else{var V=new Image;this.crossOriginImages&&(V.crossOrigin="anonymous");V.onload=function(){window.clearTimeout(ba);if(M)try{var Z=document.createElement("canvas"),aa=Z.getContext("2d");Z.height=V.height;Z.width=V.width;aa.drawImage(V,0,0);C(Z.toDataURL())}catch(ka){C(Editor.svgBrokenImage.src)}};