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:
null!=X&&0<X.length)l=mxUtils.parseXml(X).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||A||(U=null,"diagram"==l.nodeName?U=l:"mxfile"==l.nodeName&&(X=l.getElementsByTagName("diagram"),0<X.length&&(U=X[Math.max(0,Math.min(X.length-1,urlParams.page||0))])),null!=U&&(l=Editor.parseDiagramNode(U,N)));null==l||"mxGraphModel"==l.nodeName||A&&"mxfile"==l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,A){var N=mxUtils.trim(mxUtils.getTextContent(l)),X=null;