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:
!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,e,k,n,p,t,y,A,G,C,V,S){this.getBasenames();var N={};""!=p&&p!=mxConstants.NONE&&(N.highlight=p);"auto"!==n&&(N.target=n);C||(N.lightbox=!1);N.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(N.zoom=k/100);k=[];y&&(k.push("pages"),N.resize=!0,null!=this.pages&&null!=this.currentPage&&(N.page=mxUtils.indexOf(this.pages,
this.currentPage)));e&&(k.push("zoom"),N.resize=!0);A&&k.push("layers");G&&k.push("tags");0<k.length&&(C&&k.push("lightbox"),N.toolbar=k.join(" "));null!=V&&0<V.length&&(N.edit=V);null!=c?N.url=c:N.xml=this.getFileData(!0,null,null,null,null,!y);e='<div class="mxgraph" style="'+(t?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(N))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";S(e,'<script type="text/javascript" src="'+
(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,k,n){var p=document.createElement("div");p.style.whiteSpace="nowrap";var t=document.createElement("h3");mxUtils.write(t,mxResources.get("html"));t.style.cssText=