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:
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,B,K){var R=mxClient.IS_FF?8192:16384;return Math.min(K,Math.min(R/m,R/B))};Editor.prototype.exportToCanvas=function(m,B,K,R,U,W,Q,V,X,Y,Z,ca,da,ma,ea,za,Ba,Ca){try{W=null!=W?W:!0;Q=null!=Q?Q:!0;ca=null!=ca?ca:this.graph;da=null!=da?da:0;var ba=X?null:ca.background;ba==mxConstants.NONE&&(ba=null);null==ba&&(ba=R);null==ba&&0==X&&(ba=za?this.graph.defaultPageBackgroundColor: