Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
function(){d(I.checked,G.checked,S.checked,U.checked,N.getLink(),M.checked)}),null,mxResources.get("embed"),t);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,n,q,t,v,B,F){function I(P){var R=" ",M="";q&&(R=" 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!=S?"&page="+S:"")+(t?"&edit=_blank":"")+(v?"&layers=1":"")+"');}})(this);\"",M+="cursor:pointer;");d&&(M+="max-width:100%;");var p="";n&&(p=' width="'+Math.round(G.width)+'" height="'+Math.round(G.height)+'"');B('<img src="'+P+'"'+p+(""!=M?' style="'+M+'"':"")+R+"/>")}var G=this.editor.graph.getGraphBounds(),S=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(P){var R=q?this.getFileData(!0):null;P=