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:
O.model.execute(P)}}F&&this.insertHandler(K,null,null,O.defaultVertexStyle,O.defaultEdgeStyle,!1,!0)}finally{O.model.endUpdate()}}}catch(V){if(z)throw V;this.handleError(V)}return K};EditorUi.prototype.updatePageLinks=function(d,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(d,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(d,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=d[f.originalSrc.substring(f.originalSrc.indexOf(",")+
1)];null!=k&&(f.originalSrc="data:page/id,"+k)}}catch(u){}};EditorUi.prototype.updatePageLinksForCell=function(d,f){var k=document.createElement("div"),u=this.editor.graph,z=u.getLinkForCell(f);null!=z&&u.setLinkForCell(f,this.updatePageLink(d,z));if(u.isHtmlLabel(f)){k.innerHTML=Graph.sanitizeHtml(u.getLabel(f));for(var C=k.getElementsByTagName("a"),F=!1,K=0;K<C.length;K++)z=C[K].getAttribute("href"),null!=z&&(C[K].setAttribute("href",this.updatePageLink(d,z)),F=!0);F&&u.labelChanged(f,k.innerHTML)}for(K=