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:
x;x=document.createDocumentFragment();for(var X;X=P.firstChild;)lastNode=x.appendChild(X);L.insertNode(x)}}else(L=document.selection)&&"Control"!=L.type&&L.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,L){function P(ea,la){ea.length>la&&(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==L||0==L.length)L=this.isCustomLink(x)?this.getLinkTitle(x):x;var X=document.createElement("a");X.setAttribute("rel",