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:
this.graph.isCellSelected(F);return K};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(E){E=E.getCell();for(var N=this.graph.getModel(),T=N.getParent(E),F=this.graph.view.getState(T),K=this.graph.isCellSelected(E);null!=F&&(N.isVertex(T)||N.isEdge(T));){var R=this.graph.isCellSelected(T);K=K||R;if(R||!K&&(this.graph.isTableCell(E)||this.graph.isTableRow(E)))E=T;T=N.getParent(T)}return E}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var n=this,y=this.editor.graph;y.lightbox=g;var q=y.getGraphBounds;y.getGraphBounds=function(){var Q=q.apply(this,arguments),Y=this.backgroundImage;if(null!=Y&&null!=Y.width&&null!=Y.height){var m=this.view.translate,C=this.view.scale;Q=mxRectangle.fromRectangle(Q);Q.add(new mxRectangle((m.x+Y.x)*C,(m.y+Y.y)*C,Y.width*C,Y.height*C))}return Q};y.useCssTransforms&&(this.lazyZoomDelay=