Language: JavaScript
Label: safe
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(d,f,k,v,z,A){var H=localStorage.getItem(f);d=new TextareaDialog(this,d,null!=H?JSON.stringify(JSON.parse(H),null,2):"",mxUtils.bind(this,function(J){if(null!=J)try{if(null!=A&&A(J),J==H)this.hideDialog();else{if(0<J.length){var O=JSON.parse(J);localStorage.setItem(f,JSON.stringify(O))}else localStorage.removeItem(f);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(G){this.handleError(G)}}),null,mxResources.get("close"),
null,null,null,!0,null,null,z,k,v);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,f,k,v){d=null!=d?d:mxUtils.bind(this,function(z,A,H,J){A||(z=new ChangePageSetup(this,v?H:null,z),z.ignoreColor=!v,null!=J&&v&&(z.shadowVisible=J),this.editor.graph.model.execute(z))});d=new BackgroundImageDialog(this,d,f,k,v);this.showDialog(d.container,400,v?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,f,k,v,z){d=new LibraryDialog(this,