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:
var Ma=null,Oa=fa;null!=na?va.setAttribute("title",mxResources.get(na,null,na)):null!=oa&&0<oa.length&&va.setAttribute("title",oa);if(null!=ja){va.style.display="inline-flex";va.style.justifyContent="center";va.style.alignItems="center";ia=document.createElement("img");ia.setAttribute("src",ja);ia.setAttribute("alt",oa);ia.style.maxWidth=Fa+"px";ia.style.maxHeight=pa+"px";J=ia;var Xa=ja.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");va.appendChild(ia);ia.onerror=function(){this.src!=
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(va,mxUtils.bind(this,function(Na){G(va,null,null,fa,wa,Aa)}),null,null);mxEvent.addListener(va,"dblclick",function(Na){I();mxEvent.consume(Na)})}else if(!Ja&&null!=fa&&0<fa.length){var Sa=function(Na){L.setAttribute("disabled","disabled");va.style.backgroundColor="transparent";va.style.border="1px solid transparent";C.spin(ha);La(fa,function(Ya,Wa){C.stop();null!=Ya&&(G(va,Ya,ma,null,null,Aa,Wa),Na&&I())})};