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:
k+'";\nsrc: url("'+y+'");\n}'),k=document.createElement("style"),mxUtils.write(k,G));return k};Graph.addFont=function(k,y,G){if(null!=k&&0<k.length&&null!=y&&0<y.length){var P=k.toLowerCase();if("helvetica"!=P&&"arial"!=k&&"sans-serif"!=P){var Q=Graph.customFontElements[P];null!=Q&&Q.url!=y&&(Q.elt.parentNode.removeChild(Q.elt),Q=null);null==Q?(Q=y,"http:"==y.substring(0,5)&&(Q=PROXY_URL+"?url="+encodeURIComponent(y)),Q={name:k,url:y,elt:Graph.createFontElement(k,Q)},Graph.customFontElements[P]=Q,
Graph.recentCustomFonts[P]=Q,y=document.getElementsByTagName("head")[0],null!=G&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=G,Q.elt.onerror=G):G()),null!=y&&y.appendChild(Q.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return k};Graph.getFontUrl=function(k,y){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(y=k.url);return y};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var y=0;y<k.length;y++){var G=k[y].getAttribute("data-font-src");if(null!=G){var P=