Language: JavaScript
Label: safe
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=R(Editor.parseDiagramNode(M)));return M}mxEvent.addListener(U,"change",function(M){G=parseInt(U.value);N(I[G]);mxEvent.consume(M)});if("mxfile"==B.nodeName){var Q=B.getElementsByTagName("diagram");I=[];for(var P=0;P<Q.length;P++)I.push(Q[P]);