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