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]);W=b.stringToCells(Graph.decompress(B));var ca=b.editor.graph.getBoundingBoxFromGeometry(W);y(null,null,0,0,0,0,{xml:B,w:ca.width,h:ca.height})}J=!0}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}J||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}return null}function E(S){S.dataTransfer.dropEffect=null!=t?"move":"copy";S.stopPropagation();
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)||