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(P);var T=mxUtils.bind(this,function(m){v?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(m,N,this.thumbImageCache)):N(m)});q?this.embedFonts(P,T):(this.editor.addFontCss(P),T(P))}catch(m){this.handleError(m)}};EditorUi.prototype.addRadiobox=function(d,g,n,t,u,v,A){return this.addCheckbox(d,n,t,u,v,A,!0,g)};EditorUi.prototype.addCheckbox=function(d,g,n,t,u,v,A,H){v=null!=v?v:!0;var L=document.createElement("input");
L.style.marginRight="8px";L.style.marginTop="16px";L.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();L.id=A;null!=H&&L.setAttribute("name",H);n&&(L.setAttribute("checked","checked"),L.defaultChecked=!0);t&&L.setAttribute("disabled","disabled");v&&(d.appendChild(L),n=document.createElement("label"),mxUtils.write(n,g),n.setAttribute("for",A),d.appendChild(n),u||mxUtils.br(d));return L};EditorUi.prototype.addEditButton=function(d,g){var n=this.addCheckbox(d,mxResources.get("edit")+