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:
mxEvent.consume(C)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(C){mxEvent.isTouchEvent(C)||v(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(C,M){this.startX=M.getGraphX();this.startY=M.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(C,M){},mouseUp:function(C,M){mxEvent.isTouchEvent(M.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<
O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&Math.abs(this.startX-M.getGraphX())<O&&Math.abs(this.startY-M.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?k():v(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var G=b.view.validate,ja=new mxPoint,fa=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&fa!=g.currentPage){fa=g.currentPage;var C=b.getPageLayout(b.getBoundingBoxFromGeometry(b.model.getCells(),