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