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,J),0<O.length&&(m=mxUtils.parseXml(O),m=m.documentElement))))}if(null!=m&&"svg"==m.nodeName)if(O=m.getAttribute("content"),null!=O&&"<"!=O.charAt(0)&&"%"!=O.charAt(0)&&(O=unescape(window.atob?atob(O):Base64.decode(cont,O))),null!=O&&"%"==O.charAt(0)&&(O=decodeURIComponent(O)),null!=O&&0<O.length)m=mxUtils.parseXml(O).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==m||z||(T=null,"diagram"==m.nodeName?T=m:"mxfile"==m.nodeName&&(O=m.getElementsByTagName("diagram"),0<
O.length&&(T=O[Math.max(0,Math.min(O.length-1,urlParams.page||0))])),null!=T&&(m=Editor.parseDiagramNode(T,J)));null==m||"mxGraphModel"==m.nodeName||z&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,z){var J=mxUtils.trim(mxUtils.getTextContent(m)),O=null;0<J.length?(m=Graph.decompress(J,null,z),null!=m&&0<m.length&&(O=mxUtils.parseXml(m).documentElement)):(m=mxUtils.getChildNodes(m),0<m.length&&(O=mxUtils.createXmlDocument(),O.appendChild(O.importNode(m[0],!0)),O=O.documentElement));