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:
"geCommentActionLnk";mxUtils.write(Y,U);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){T(Z,n);Z.preventDefault();mxEvent.consume(Z)});Q.appendChild(X);W&&(X.style.display="none")}function O(){function U(X){T.push(W);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)W=W.nextSibling,U(X.replies[Y])}var T=[],W=k;U(n);return{pdiv:W,replies:T}}function V(U,T,W,X,Y){function Z(){N(ea);n.addReply(na,function(za){na.id=za;n.replies.push(na);R(ea);W&&W()},function(za){ca();H(ea);b.handleError(za,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){F(na,ea,function(za){Z()},!0)}var ha=O().pdiv,na=b.newComment(U,b.getCurrentUser());na.pCommentId=n.id;null==n.replies&&(n.replies=[]);var ea=J(na,n.replies,ha,D+1);T?ca():Z()}if(M||!n.isResolved){x.style.display="none";var k=document.createElement("div");k.className="geCommentContainer";k.setAttribute("data-commentId",n.id);k.style.marginLeft=20*D+5+"px";n.isResolved&&!Editor.isDarkMode()&&(k.style.backgroundColor=