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:
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var y=k.convert,G=this;k.convert=function(P){if(null!=P){var Q="http://"==P.substring(0,7)||"https://"==P.substring(0,8);Q&&!navigator.onLine?P=Editor.svgBrokenImage.src:!Q||P.substring(0,k.baseUrl.length)==
k.baseUrl||G.crossOriginImages&&G.isCorsEnabledForUrl(P)?"chrome-extension://"==P.substring(0,19)||mxClient.IS_CHROMEAPP||(P=y.apply(this,arguments)):P=PROXY_URL+"?url="+encodeURIComponent(P)}return P};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,y){try{var G=!0,P=window.setTimeout(mxUtils.bind(this,function(){G=!1;y(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(k))mxUtils.get(k,