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:
M){var p=M.getAttribute("background");if(null==p||""==p||p==mxConstants.NONE)p=Editor.isDarkMode()?"transparent":"#ffffff";q.style.backgroundColor=p;(new mxCodec(M.ownerDocument)).decode(M,t.getModel());t.maxFitScale=1;t.fit(8);t.center()}return M}function N(M){null!=M&&(M=U(Editor.parseDiagramNode(M)));return M}mxEvent.addListener(S,"change",function(M){F=parseInt(S.value);N(I[F]);mxEvent.consume(M)});if("mxfile"==B.nodeName){var P=B.getElementsByTagName("diagram");I=[];for(var R=0;R<P.length;R++)I.push(P[R]);