Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

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