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:
g&&g!=mxConstants.NONE&&B.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=t&&0<t.length&&B.push("edit="+encodeURIComponent(t)),v&&B.push("layers=1"),this.editor.graph.foldingEnabled&&B.push("nav=1"));n&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&B.push("page-id="+this.currentPage.getId());return B};EditorUi.prototype.createLink=function(d,g,n,q,t,v,B,F,I,G){I=this.createUrlParameters(d,g,n,q,t,v,I);d=this.getCurrentFile();g=!0;null!=B?n="#U"+encodeURIComponent(B):
(d=this.getCurrentFile(),F||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&null!=d&&null!=d.getTitle()&&d.getTitle()!=this.defaultFilename&&I.push("title="+encodeURIComponent(d.getTitle()));G&&1<n.length&&(I.push("open="+n.substring(1)),n="");return(q&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<I.length?"?"+I.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,q,t,v,B,F,I,G,S,U){this.getBasenames();var N={};""!=t&&t!=mxConstants.NONE&&(N.highlight=t);"auto"!==q&&(N.target=q);G||(N.lightbox=!1);N.nav=this.editor.graph.foldingEnabled;n=parseInt(n);isNaN(n)||100==n||(N.zoom=n/100);n=[];B&&(n.push("pages"),N.resize=!0,null!=this.pages&&null!=this.currentPage&&(N.page=mxUtils.indexOf(this.pages,