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:
function(S){for(var U=W.apply(this,arguments),Q=new mxDictionary,Y=[],m=0;m<U.length;m++){var C=this.graph.isTableCell(S)&&this.graph.isTableCell(U[m])&&this.graph.isCellSelected(U[m])?this.graph.model.getParent(U[m]):this.graph.isTableRow(S)&&this.graph.isTableRow(U[m])&&this.graph.isCellSelected(U[m])?U[m]:this.graph.getCompositeParent(U[m]);null==C||Q.get(C)||(Q.put(C,!0),Y.push(C))}return Y};var d=this.graphHandler.start;this.graphHandler.start=function(S,U,Q,Y){var m=!1;this.graph.isTableCell(S)&&
(this.graph.isCellSelected(S)?m=!0:S=this.graph.model.getParent(S));m||this.graph.isTableRow(S)&&this.graph.isCellSelected(S)||(S=this.graph.getCompositeParent(S));d.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(S,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(S,U,Q,Y,m,C){var M=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=Y&&this.graph.applyNewEdgeStyle(Y,