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:
g&&g(q)}}),null,null,null,mxUtils.bind(this,function(S){null!=g&&g(S)}),null,null,t,null,v.shadowVisible,null,v,u,null,null,null,"diagram",null)}catch(S){null!=g&&g(S)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,n,t,u,v,A,H,L,F,S,p,q){H=null!=H?H:!0;S=null!=S?S:0;A=null!=L?L:g.background;A==mxConstants.NONE&&(A=null);v=g.getSvg(A,F,S,null,null,v,null,null,null,g.shadowVisible||p,null,q,"diagram");(g.shadowVisible||p)&&g.addSvgShadow(v,null,null,0==S);null!=d&&v.setAttribute("content",d);null!=
n&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImages(J,mxUtils.bind(this,function(G){C(G)})):C(J)}));else return C(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&