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:
!this.isCorsEnabledForUrl(m)){var B=/(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);B=/\.png$/i.test(m)||/\.pdf$/i.test(m)||B;var K="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+K+(B?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var B=m.convert,K=this;m.convert=function(R){if(null!=R){var U="http://"==R.substring(0,7)||"https://"==R.substring(0,8);U&&!navigator.onLine?R=Editor.svgBrokenImage.src:!U||R.substring(0,m.baseUrl.length)==