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:
this.editor.graph.mathEnabled&&this.editor.addMathCss(M);var V=mxUtils.bind(this,function(k){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(k,O,this.thumbImageCache)):O(k)});n?this.embedFonts(M,V):(this.editor.addFontCss(M),V(M))}catch(k){this.handleError(k)}};EditorUi.prototype.addRadiobox=function(c,e,g,q,p,t,x){return this.addCheckbox(c,g,q,p,t,x,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,g,q,p,t,x,B){t=null!=t?t:!0;var I=document.createElement("input");
I.style.marginRight="8px";I.style.marginTop="16px";I.setAttribute("type",x?"radio":"checkbox");x="geCheckbox-"+Editor.guid();I.id=x;null!=B&&I.setAttribute("name",B);g&&(I.setAttribute("checked","checked"),I.defaultChecked=!0);q&&I.setAttribute("disabled","disabled");t&&(c.appendChild(I),g=document.createElement("label"),mxUtils.write(g,e),g.setAttribute("for",x),c.appendChild(g),p||mxUtils.br(c));return I};EditorUi.prototype.addEditButton=function(c,e){var g=this.addCheckbox(c,mxResources.get("edit")+