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);
M&&A(Editor.svgBrokenImage.src)};U.src=m}}catch(W){A(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,A,M,Q){null==Q&&(Q=this.createImageUrlConverter());var U=0,W=M||{};M=mxUtils.bind(this,function(P,V){P=m.getElementsByTagName(P);for(var X=0;X<P.length;X++)mxUtils.bind(this,function(Y){try{if(null!=Y){var Z=Q.convert(Y.getAttribute(V));if(null!=Z&&"data:"!=Z.substring(0,5)){var da=W[Z];null==da?(U++,this.convertImageToDataUri(Z,function(ba){null!=ba&&(W[Z]=ba,Y.setAttribute(V,