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:
if(null!=y&&0<y.length){var V=document.createElement("script");V.setAttribute("type","text/javascript");V.setAttribute("src",g);y[0].parentNode.appendChild(V)}}};Editor.prototype.csvToArray=function(g){if(0<g.length){var y="",H=[""],O=0,P=!0,V;g=$jscomp.makeIterator(g);for(V=g.next();!V.done;V=g.next())V=V.value,'"'===V?(P&&V===y&&(H[O]+=V),P=!P):","===V&&P?V=H[++O]="":H[O]+=V,y=V;return H}return[]};Editor.prototype.getProxiedUrl=function(g){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!this.isCorsEnabledForUrl(g)){var y=/(\.v(dx|sdx?))($|\?)/i.test(g)||/(\.vs(x|sx?))($|\?)/i.test(g);y=/\.png$/i.test(g)||/\.pdf$/i.test(g)||y;var H="t="+(new Date).getTime();g=PROXY_URL+"?url="+encodeURIComponent(g)+"&"+H+(y?"&base64=1":"")}return g};Editor.prototype.isCorsEnabledForUrl=function(g){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||g.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));