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:
m.baseUrl.length)==m.baseUrl||M.crossOriginImages&&M.isCorsEnabledForUrl(ba)?"chrome-extension://"==ba.substring(0,19)||mxClient.IS_CHROMEAPP||(ba=C.apply(this,arguments)):ba=PROXY_URL+"?url="+encodeURIComponent(ba)}return ba};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,C){try{var M=!0,ba=window.setTimeout(mxUtils.bind(this,function(){M=!1;C(Editor.svgBrokenImage.src)}),this.timeout);
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)}};
V.onerror=function(){window.clearTimeout(ba);M&&C(Editor.svgBrokenImage.src)};V.src=m}}catch(Z){C(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,C,M,ba){null==ba&&(ba=this.createImageUrlConverter());var V=0,Z=M||{};M=mxUtils.bind(this,function(aa,ka){aa=m.getElementsByTagName(aa);for(var qa=0;qa<aa.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=ba.convert(ra.getAttribute(ka));if(null!=pa&&"data:"!=pa.substring(0,5)){var wa=Z[pa];null==wa?(V++,this.convertImageToDataUri(pa,