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:
mxUtils.bind(this,function(W){window.clearTimeout(R);K&&B(Editor.createSvgDataUri(W.getText()))}),function(){window.clearTimeout(R);K&&B(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(R);if(K)try{var W=document.createElement("canvas"),Q=W.getContext("2d");W.height=U.height;W.width=U.width;Q.drawImage(U,0,0);B(W.toDataURL())}catch(V){B(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(R);