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:
"geCommentActionLnk";mxUtils.write(Z,T);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,N);Y.preventDefault();mxEvent.consume(Y)});P.appendChild(X);U&&(X.style.display="none")}function B(){function T(X){W.push(U);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)U=U.nextSibling,T(X.replies[Z])}var W=[],U=g;T(N);return{pdiv:U,replies:W}}function H(T,W,U,X,Z){function Y(){K(aa);N.addReply(ca,function(ra){ca.id=ra;N.replies.push(ca);R(aa);U&&U()},function(ra){ba();E(aa);b.handleError(ra,