Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
var CommentsWindow=function(b,f,l,d,q,u){function z(){for(var N=t.getElementsByTagName("div"),O=0,Q=0;Q<N.length;Q++)"none"!=N[Q].style.display&&N[Q].parentNode==t&&O++;y.style.display=0==O?"block":"none"}function D(N,O,Q,J){function m(){O.removeChild(H);O.removeChild(g);B.style.display="block";v.style.display="block"}k={div:O,comment:N,saveCallback:Q,deleteOnCancel:J};var v=O.querySelector(".geCommentTxt"),B=O.querySelector(".geCommentActionsList"),H=document.createElement("textarea");H.className=
"geCommentEditTxtArea";H.style.minHeight=v.offsetHeight+"px";H.value=N.content;O.insertBefore(H,v);var g=document.createElement("div");g.className="geCommentEditBtns";var x=mxUtils.button(mxResources.get("cancel"),function(){J?(O.parentNode.removeChild(O),z()):m();k=null});x.className="geCommentEditBtn";g.appendChild(x);var F=mxUtils.button(mxResources.get("save"),function(){v.innerText="";N.content=H.value;mxUtils.write(v,N.content);m();Q(N);k=null});mxEvent.addListener(H,"keydown",mxUtils.bind(this,
function(M){mxEvent.isConsumed(M)||((mxEvent.isControlDown(M)||mxClient.IS_MAC&&mxEvent.isMetaDown(M))&&13==M.keyCode?(F.click(),mxEvent.consume(M)):27==M.keyCode&&(x.click(),mxEvent.consume(M)))}));F.focus();F.className="geCommentEditBtn gePrimaryBtn";g.appendChild(F);O.insertBefore(g,v);B.style.display="none";v.style.display="none";H.focus()}function L(N,O){O.innerText="";N=new Date(N.modifiedDate);var Q=b.timeSince(N);null==Q&&(Q=mxResources.get("lessThanAMinute"));mxUtils.write(O,mxResources.get("timeAgo",