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:
[];this.traverse(k,!0,mxUtils.bind(this,function(x,E){var D=null!=E&&this.isTreeEdge(E);D&&l.push(E);x==k||null!=E&&!D||l.push(x);return(null==E||D)&&(x==k||!this.model.isCollapsed(x))}));this.model.setCollapsed(k,c);for(var u=0;u<l.length;u++)this.model.setVisible(l[u],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,k,l,u,x,E){return this.model.filterCells(this.getEdges(c,k,l,u,x,E),mxUtils.bind(this,
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(M){return n.isVertex(M)&&l(M)}function k(M){var p=!1;null!=M&&(p="1"==