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:
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("&lt;mxfile ");if(0<=n){var t=d.lastIndexOf("&lt;/mxfile&gt;");t>n&&(g=d.substring(n,t+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),v=this.editor.extractGraphModel(u.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=v?mxUtils.getXml(v):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=