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