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:
if(null!=B&&0<B.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",m);B[0].parentNode.appendChild(W)}}};Editor.prototype.csvToArray=function(m){if(0<m.length){var B="",K=[""],R=0,U=!0,W;m=$jscomp.makeIterator(m);for(W=m.next();!W.done;W=m.next())W=W.value,'"'===W?(U&&W===B&&(K[R]+=W),U=!U):","===W&&U?W=K[++R]="":K[R]+=W,B=W;return K}return[]};Editor.prototype.getProxiedUrl=function(m){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!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)));