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:
(g[y]=Graph.fontMapping[y]);return g};Editor.prototype.embedExtFonts=function(g){var y=this.graph.getCustomFonts();if(0<y.length){var H=[],O=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var P=mxUtils.bind(this,function(){0==O&&this.embedCssFonts(H.join(""),g)}),V=0;V<y.length;V++)mxUtils.bind(this,function(R,W){Graph.isCssFontUrl(W)?null==this.cachedGoogleFonts[W]?(O++,this.loadUrl(W,mxUtils.bind(this,function(X){this.cachedGoogleFonts[W]=X;H.push(X+"\n");
O--;P()}),mxUtils.bind(this,function(X){O--;H.push("@import url("+W+");\n");P()}))):H.push(this.cachedGoogleFonts[W]+"\n"):H.push('@font-face {font-family: "'+R+'";src: url("'+W+'")}\n')})(y[V].name,y[V].url);P()}else g()};Editor.prototype.addMathCss=function(g){g=g.getElementsByTagName("defs");if(null!=g&&0<g.length)for(var y=document.getElementsByTagName("style"),H=0;H<y.length;H++){var O=mxUtils.getTextContent(y[H]);0>O.indexOf("mxPageSelector")&&0<O.indexOf("MathJax")&&g[0].appendChild(y[H].cloneNode(!0))}};