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");L(K)}finally{u.getModel().endUpdate()}if("horizontalTree"==l){var E=new mxCompactTreeLayout(u);E.edgeRouting=!1;E.levelDistance=30;z="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==l?(E=new mxCompactTreeLayout(u,!1),E.edgeRouting=!1,E.levelDistance=30,z="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==l?(E=new mxRadialTreeLayout(u,!1),E.edgeRouting=!1,E.levelDistance=80):"verticalFlow"==l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_WEST):"circle"==l?E=new mxCircleLayout(u):(E=new mxFastOrganicLayout(u,!1),E.forceConstant=80);if(null!=E){var R=function(k,n){u.getModel().beginUpdate();try{null!=k&&k(),E.execute(u.getDefaultParent(),K)}catch(p){throw p;}finally{k=new mxMorphing(u),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){u.getModel().endUpdate();null!=n&&n()})),k.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,n,
p,t,y){I.apply(this,arguments);R()};u.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};u.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=q.parentNode&&(u.destroy(),q.parentNode.removeChild(q));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(k){u.clearCellOverlays();