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:
0<N.length?(l=Graph.decompress(N,null,A),null!=l&&0<l.length&&(X=mxUtils.parseXml(l).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(X=mxUtils.createXmlDocument(),X.appendChild(X.importNode(l[0],!0)),X=X.documentElement));return X};Editor.getDiagramNodeXml=function(l){var A=mxUtils.getTextContent(l),N=null;0<A.length?N=Graph.decompress(A):null!=l.firstChild&&(N=mxUtils.getXml(l.firstChild));return N};Editor.extractGraphModelFromPdf=function(l){l=l.substring(l.indexOf(",")+1);l=window.atob&&
!mxClient.IS_SF?atob(l):Base64.decode(l,!0);if("%PDF-1.7"==l.substring(0,8)){var A=l.indexOf("EmbeddedFile");if(-1<A){var N=l.indexOf("stream",A)+9;if(0<l.substring(A,N).indexOf("application#2Fvnd.jgraph.mxfile"))return A=l.indexOf("endstream",N-1),pako.inflateRaw(Graph.stringToArrayBuffer(l.substring(N,A)),{to:"string"})}return null}N=null;A="";for(var X=0,U=0,Z=[],ba=null;U<l.length;){var ia=l.charCodeAt(U);U+=1;10!=ia&&(A+=String.fromCharCode(ia));ia=="/Subject (%3Cmxfile".charCodeAt(X)?X++:X=
0;if(19==X){var qa=l.indexOf("%3C%2Fmxfile%3E)",U)+15;U-=9;if(qa>U){N=l.substring(U,qa);break}}10==ia&&("endobj"==A?ba=null:"obj"==A.substring(A.length-3,A.length)||"xref"==A||"trailer"==A?(ba=[],Z[A.split(" ")[0]]=ba):null!=ba&&ba.push(A),A="")}null==N&&(N=Editor.extractGraphModelFromXref(Z));null!=N&&(N=decodeURIComponent(N.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return N};Editor.extractGraphModelFromXref=function(l){var A=l.trailer,N=null;null!=A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),