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:
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var C=this.graph.getPageLayout(),M=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+C.x*M.width),this.scale*(this.translate.y+C.y*M.height),this.scale*C.width*M.width,
this.scale*C.height*M.height)};b.getPreferredPageSize=function(C,M,ba){C=this.getPageLayout();M=this.getPageSize();return new mxRectangle(0,0,C.width*M.width,C.height*M.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(C,M,ba,V){if(null!=b.container&&!b.isViewer()){ba=null!=ba?ba:0;V=null!=V?V:0;var Z=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),aa=mxUtils.hasScrollbars(b.container),ka=b.view.translate,qa=b.view.scale,