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:
0,0,80,30,"ellipse");E(D)}finally{l.getModel().endUpdate()}if("horizontalTree"==f){var A=new mxCompactTreeLayout(l);A.edgeRouting=!1;A.levelDistance=30;u="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(A=new mxCompactTreeLayout(l,!1),A.edgeRouting=!1,A.levelDistance=30,u="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(A=new mxRadialTreeLayout(l,!1),A.edgeRouting=!1,A.levelDistance=80):"verticalFlow"==f?A=new mxHierarchicalLayout(l,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
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();