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:
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(g){return g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(g){return Graph.isGoogleFontUrl(g)};Graph.createFontElement=function(g,y){var H=Graph.fontMapping[y];null==H&&Graph.isCssFontUrl(y)?(g=document.createElement("link"),g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("charset","UTF-8"),g.setAttribute("href",y)):(null==H&&(H='@font-face {\nfont-family: "'+
g+'";\nsrc: url("'+y+'");\n}'),g=document.createElement("style"),mxUtils.write(g,H));return g};Graph.addFont=function(g,y,H){if(null!=g&&0<g.length&&null!=y&&0<y.length){var O=g.toLowerCase();if("helvetica"!=O&&"arial"!=g&&"sans-serif"!=O){var P=Graph.customFontElements[O];null!=P&&P.url!=y&&(P.elt.parentNode.removeChild(P.elt),P=null);null==P?(P=y,"http:"==y.substring(0,5)&&(P=PROXY_URL+"?url="+encodeURIComponent(y)),P={name:g,url:y,elt:Graph.createFontElement(g,P)},Graph.customFontElements[O]=P,