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:
f&&f(ca)}}),null,null,null,mxUtils.bind(this,function(ja){null!=f&&f(ja)}),null,null,u,null,B.shadowVisible,null,B,A,null,null,null,"diagram",null)}catch(ja){null!=f&&f(ja)}};EditorUi.prototype.getEmbeddedSvg=function(d,f,l,u,A,B,F,M,O,H,ja,da,ca){M=null!=M?M:!0;ja=null!=ja?ja:0;F=null!=O?O:f.background;F==mxConstants.NONE&&(F=null);B=f.getSvg(F,H,ja,null,null,B,null,null,null,f.shadowVisible||da,null,ca,"diagram");(f.shadowVisible||da)&&f.addSvgShadow(B,null,null,0==ja);null!=d&&B.setAttribute("content",
d);null!=l&&B.setAttribute("resource",l);var ia=mxUtils.bind(this,function(ma){ma=(u?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(ma);null!=A&&A(ma);return ma});f.mathEnabled&&this.editor.addMathCss(B);if(null!=A)this.embedFonts(B,mxUtils.bind(this,function(ma){M?this.editor.convertImages(ma,mxUtils.bind(this,function(aa){ia(aa)})):ia(ma)}));else return ia(B)};EditorUi.prototype.embedFonts=function(d,f){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=