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:
S.preventDefault()}function D(S){S.stopPropagation();S.preventDefault();H=!1;u=x(S);if(null!=t)null!=u&&u<d.children.length?(z.splice(u>t?u-1:u,0,z.splice(t,1)[0]),d.insertBefore(d.children[t],d.children[u])):(z.push(z.splice(t,1)[0]),d.appendChild(d.children[t]));else if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,L(S));else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var p=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(p)||
/(\.png)($|\?)/i.test(p)||/(\.gif)($|\?)/i.test(p)||/(\.svg)($|\?)/i.test(p))&&b.loadImage(p,function(q){y(p,null,0,0,q.width,q.height);d.scrollTop=d.scrollHeight})}S.stopPropagation();S.preventDefault()}var z=[];f=document.createElement("div");f.style.height="100%";var M=document.createElement("div");M.style.whiteSpace="nowrap";M.style.height="40px";f.appendChild(M);mxUtils.write(M,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var I=document.createElement("input");I.setAttribute("value",