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:
"22px";B.style.width="22px";B.style.position="relative";B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";d.appendChild(B);mxUtils.br(d);return{getColor:function(){return v},getTarget:function(){return q.value},focus:function(){q.focus()}}};EditorUi.prototype.createUrlParameters=function(d,g,n,q,t,v,B){B=null!=B?B:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||B.push("lightbox=1"),"auto"!=d&&B.push("target="+d),null!=
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):