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:
"auto"==za&&1==wa.length){O.view.validate();var db=new mxHierarchicalLayout(O,"horizontalflow"==za?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);db.intraCellSpacing=ba;db.parallelEdgeSpacing=Z;db.interRankCellSpacing=ia;db.disableEdgeStyle=!1;this.executeLayout(function(){db.execute(O.getDefaultParent(),sa);O.moveCells(sa,xa,Ca)},!0,ra);ra=null}else if("orgchart"==za){O.view.validate();var lb=new mxOrgChartLayout(O,2,ia,ba),kb=lb.isVertexIgnored;lb.isVertexIgnored=function(jb){return kb.apply(this,
arguments)||0>mxUtils.indexOf(C,jb)};this.executeLayout(function(){lb.execute(O.getDefaultParent());Ra()},!0,ra);ra=null}else if("organic"==za||"auto"==za&&sa.length>C.length){O.view.validate();var Pa=new mxFastOrganicLayout(O);Pa.forceConstant=3*ba;Pa.disableEdgeStyle=!1;Pa.resetEdges=!1;var eb=Pa.isVertexIgnored;Pa.isVertexIgnored=function(jb){return eb.apply(this,arguments)||0>mxUtils.indexOf(C,jb)};this.executeLayout(function(){Pa.execute(O.getDefaultParent());Ra()},!0,ra);ra=null}}this.hideDialog()}finally{O.model.endUpdate()}null!=