Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
mxUtils.getTextContent(Y[Z]);W=b.stringToCells(Graph.decompress(z));var aa=b.editor.graph.getBoundingBoxFromGeometry(W);x(null,null,0,0,0,0,{xml:z,w:aa.width,h:aa.height})}R=!0}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}R||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}return null}function E(S){S.dataTransfer.dropEffect=null!=q?"move":"copy";S.stopPropagation();
S.preventDefault()}function D(S){S.stopPropagation();S.preventDefault();F=!1;t=u(S);if(null!=q)null!=t&&t<d.children.length?(A.splice(t>q?t-1:t,0,A.splice(q,1)[0]),d.insertBefore(d.children[q],d.children[t])):(A.push(A.splice(q,1)[0]),d.appendChild(d.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 U=decodeURIComponent(S.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(U)||