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:
f?A=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(l):(A=new mxFastOrganicLayout(l,!1),A.forceConstant=80);if(null!=A){var K=function(n,q){l.getModel().beginUpdate();try{null!=n&&n(),A.execute(l.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(l),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q,
t,v,B){H.apply(this,arguments);K()};l.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);K()};l.connectionHandler.addListener(mxEvent.CONNECT,function(){K()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(l.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){l.clearCellOverlays();