Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
ba.charAt(0)&&(ba=decodeURIComponent(ba)),null!=ba&&0<ba.length)m=mxUtils.parseXml(ba).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==m||C||(V=null,"diagram"==m.nodeName?V=m:"mxfile"==m.nodeName&&(ba=m.getElementsByTagName("diagram"),0<ba.length&&(V=ba[Math.max(0,Math.min(ba.length-1,urlParams.page||0))])),null!=V&&(m=Editor.parseDiagramNode(V,M)));null==m||"mxGraphModel"==m.nodeName||C&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,C){var M=