Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
0,0,80,30,"ellipse");E(D)}finally{l.getModel().endUpdate()}if("horizontalTree"==f){var z=new mxCompactTreeLayout(l);z.edgeRouting=!1;z.levelDistance=30;x="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(z=new mxCompactTreeLayout(l,!1),z.edgeRouting=!1,z.levelDistance=30,x="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(z=new mxRadialTreeLayout(l,!1),z.edgeRouting=!1,z.levelDistance=80):"verticalFlow"==f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?z=new mxCircleLayout(l):(z=new mxFastOrganicLayout(l,!1),z.forceConstant=80);if(null!=z){var M=function(n,t){l.getModel().beginUpdate();try{null!=n&&n(),z.execute(l.getDefaultParent(),D)}catch(u){throw u;}finally{n=new mxMorphing(l),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t,
u,v,A){I.apply(this,arguments);M()};l.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);M()};l.connectionHandler.addListener(mxEvent.CONNECT,function(){M()})}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();