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:
"...",function(){var Z=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(T.value),parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(X.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(Z,null,2))});O.className="geBtn";J=new CustomDialog(c,J,function(){null==C&&(C=2);c.loadOrgChartLayouts(z)},null,null,null,O);c.showDialog(J.container,355,140,!0,!0)},y,null,l());p.addSeparator(y);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,
function(){var C=new mxParallelEdgeLayout(k);C.checkOverlap=!0;c.prompt(mxResources.get("spacing"),C.spacing,mxUtils.bind(this,function(L){c.tryAndHandle(mxUtils.bind(this,function(){C.spacing=L;c.executeLayout(function(){C.execute(k.getDefaultParent(),k.isSelectionEmpty()?null:k.getSelectionCells())},!1)}))}))}))}),y);p.addSeparator(y);c.menus.addMenuItem(p,"runLayout",y,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(p,y){if(!mxClient.IS_CHROMEAPP&&