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:
null,null,null,!0,null,null,p,g,q);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,q){c=null!=c?c:mxUtils.bind(this,function(p,t,x,B){t||(p=new ChangePageSetup(this,q?x:null,p),p.ignoreColor=!q,null!=B&&q&&(p.shadowVisible=B),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,g,q);this.showDialog(c.container,400,q?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,g,q,p){c=new LibraryDialog(this,
c,e,g,q,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(t){t&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(g){this.editor.graph.isSelectionEmpty()&&e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,g,q,p,t,x){var B=null!=this.spinner&&