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