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:
y[H].url)}catch(P){console.log("ExtFonts format error: "+P.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(g,y){g=null!=g?g:!0;var H=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&H.setAttribute("style",
this.graph.currentStyle);var O=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=O&&H.setAttribute("backgroundImage",JSON.stringify(O));H.setAttribute("math",this.graph.mathEnabled?"1":"0");H.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(O=this.graph.extFonts.map(function(P){return P.name+"^"+P.url}),H.setAttribute("extFonts",O.join("|")));return H};Editor.prototype.isDataSvg=function(g){try{var y=mxUtils.parseXml(g).documentElement.getAttribute("content");