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:
mxUtils.getTextContent(Z[Y]);U=b.stringToCells(Graph.decompress(y));var ca=b.editor.graph.getBoundingBoxFromGeometry(U);F(null,null,0,0,0,0,{xml:y,w:ca.width,h:ca.height})}C=!0}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}C||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}return null}function L(S){S.dataTransfer.dropEffect=null!=q?"move":"copy";S.stopPropagation();
S.preventDefault()}function N(S){S.stopPropagation();S.preventDefault();B=!1;p=E(S);if(null!=q)null!=p&&p<c.children.length?(H.splice(p>q?p-1:p,0,H.splice(q,1)[0]),c.insertBefore(c.children[q],c.children[p])):(H.push(H.splice(q,1)[0]),c.appendChild(c.children[q]));else if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,I(S));else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var l=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(l)||