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:
function(P){mxEvent.isConsumed(P)||((mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P))&&13==P.keyCode?(G.click(),mxEvent.consume(P)):27==P.keyCode&&(y.click(),mxEvent.consume(P)))}));G.focus();G.className="geCommentEditBtn gePrimaryBtn";k.appendChild(G);z.insertBefore(k,K);O.style.display="none";K.style.display="none";V.focus()}function L(n,z){z.innerText="";n=new Date(n.modifiedDate);var C=b.timeSince(n);null==C&&(C=mxResources.get("lessThanAMinute"));mxUtils.write(z,mxResources.get("timeAgo",
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style.border="";n.removeChild(n.busyImg)}function J(n,z,C,D,M){function K(U,T,W){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className=