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