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