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