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+'";\nsrc: url("'+B+'");\n}'),m=document.createElement("style"),mxUtils.write(m,K));return m};Graph.addFont=function(m,B,K){if(null!=m&&0<m.length&&null!=B&&0<B.length){var R=m.toLowerCase();if("helvetica"!=R&&"arial"!=m&&"sans-serif"!=R){var U=Graph.customFontElements[R];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:m,url:B,elt:Graph.createFontElement(m,U)},Graph.customFontElements[R]=U,
Graph.recentCustomFonts[R]=U,B=document.getElementsByTagName("head")[0],null!=K&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=K,U.elt.onerror=K):K()),null!=B&&B.appendChild(U.elt)):null!=K&&K()}else null!=K&&K()}else null!=K&&K();return m};Graph.getFontUrl=function(m,B){m=Graph.customFontElements[m.toLowerCase()];null!=m&&(B=m.url);return B};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var B=0;B<m.length;B++){var K=m[B].getAttribute("data-font-src");if(null!=K){var R=