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:
mxUtils.write(q,"?"),mxEvent.addGestureListeners(q,mxUtils.bind(this,function(C){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(C)})),S.insertBefore(q,S.firstChild))}G.appendChild(S);G.style.paddingRight=18*S.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var n=0;n<d.length;n++){var q=d[n],t=q.data;if(null!=t){t=this.convertDataUri(t);var v="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==q.aspect&&(v+="aspect=fixed;");
g.appendChild(this.sidebar.createVertexTemplate(v+"image="+t,q.w,q.h,"",q.title||"",!1,null,!0))}else null!=q.xml&&(t=this.stringToCells("<"==q.xml.charAt(0)?q.xml:Graph.decompress(q.xml)),0<t.length&&g.appendChild(this.sidebar.createVertexTemplateFromCells(t,q.w,q.h,q.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=