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