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