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:
E+"px",this.view.backgroundPageShape.node.style.marginTop=N+"px")};var y=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(E,N,T,F,K,R){var W=y.apply(this,arguments);null==R||R||mxEvent.addListener(W,"mousedown",function(d){mxEvent.consume(d)});return W};var q=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(E,N,T){var F=this.graph.model.getParent(E);if(N){var K=this.graph.model.isEdge(E)?null:this.graph.getCellGeometry(E);
K=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(E)&&(null!=K&&K.relative||!this.graph.isContainer(F)||this.graph.isPart(E))}else if(K=q.apply(this,arguments),this.graph.isTableCell(E)||this.graph.isTableRow(E))K=F,this.graph.isTable(K)||(K=this.graph.model.getParent(K)),K=!this.graph.selectionCellsHandler.isHandled(K)||this.graph.isCellSelected(K)&&this.graph.isToggleEvent(T.getEvent())||this.graph.isCellSelected(E)&&!this.graph.isToggleEvent(T.getEvent())||this.graph.isTableCell(E)&&
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=