Language: JavaScript
Label: safe
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:
EditorUi.prototype.patchPage=function(b,e,f,c){var k=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),m=this.createParentLookup(k,e);k.beginUpdate();try{var u=k.updateEdgeParent,v=new mxDictionary,E=[];k.updateEdgeParent=function(q,t){!v.get(q)&&c&&(v.put(q,!0),E.push(q))};var D=m[""],A=null!=D&&null!=D.inserted?D.inserted[""]:null,L=null;null!=A&&(L=this.getCellForJson(A));if(null==L){var H=null!=D&&null!=D.moved?D.moved[""]:null;null!=H&&(L=k.getCell(H))}null!=L&&(k.setRoot(L),