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:
mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(E,N,T){for(var F=0;F<N.length;F++){if(this.graph.isTableCell(N[F])||this.graph.isTableRow(N[F]))return!1;if(this.graph.getModel().isVertex(N[F])){var K=this.graph.getCellGeometry(N[F]);if(null!=K&&K.relative)return!1}}return e.apply(this,arguments)};var g=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var E=g.apply(this,arguments);E.intersects=mxUtils.bind(this,function(N,T){return this.isConnecting()?