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:
d.nodeName&&(A=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{v.endUpdate()}null!=A&&this.chromelessResize&&this.chromelessResize(!0,A)}return n};EditorUi.prototype.getCopyFilename=function(d,g){var n=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var t=n.lastIndexOf(".");0<=t&&(d=n.substring(t),n=n.substring(0,t));if(g){g=n;var u=new Date;n=u.getFullYear();t=u.getMonth()+1;var v=u.getDate(),A=u.getHours(),H=u.getMinutes();u=u.getSeconds();
n=g+(" "+(n+"-"+t+"-"+v+"-"+A+"-"+H+"-"+u))}return n=mxResources.get("copyOf",[n])+d};EditorUi.prototype.fileLoaded=function(d,g,n){var t=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var u=!1;this.hideDialog();null!=t&&(EditorUi.debug("File.closed",[t]),t.removeListener(this.descriptorChangedListener),t.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var v=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);