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.showLocalStorageDialog=function(c,e,g,q,p,t){var x=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=x?JSON.stringify(JSON.parse(x),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=t&&t(B),B==x)this.hideDialog();else{if(0<B.length){var I=JSON.parse(B);localStorage.setItem(e,JSON.stringify(I))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(A){this.handleError(A)}}),null,mxResources.get("close"),
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,