Language: JavaScript
Label: safe
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:
"disabled")});f=new CustomDialog(this,A,mxUtils.bind(this,function(){d(O.checked,G.checked,ja.checked,fa.checked,ca.getLink(),ba.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,f,k,v,z,A,H,J){function O(ia){var ma=" ",ba="";v&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
EditorUi.lightboxHost+"/?client=1"+(null!=ja?"&page="+ja:"")+(z?"&edit=_blank":"")+(A?"&layers=1":"")+"');}})(this);\"",ba+="cursor:pointer;");d&&(ba+="max-width:100%;");var S="";k&&(S=' width="'+Math.round(G.width)+'" height="'+Math.round(G.height)+'"');H('<img src="'+ia+'"'+S+(""!=ba?' style="'+ba+'"':"")+ma+"/>")}var G=this.editor.graph.getGraphBounds(),ja=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(ia){var ma=v?this.getFileData(!0):