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:
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=
"FONT"==k[y].nodeName?k[y].getAttribute("face"):k[y].style.fontFamily;null!=P&&Graph.addFont(P,G)}}};Graph.processFontStyle=function(k){if(null!=k){var y=mxUtils.getValue(k,"fontSource",null);if(null!=y){var G=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);null!=G&&Graph.addFont(G,decodeURIComponent(y))}}return k};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible=