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