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:
n.model.getChildAt(e,A))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var k=c[e.substring(e.indexOf(",")+1)];e=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==e.substring(0,17))try{var n=JSON.parse(e.substring(17));if(null!=n.actions){for(var p=0;p<n.actions.length;p++){var t=n.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var y=t.open.substring(t.open.indexOf(",")+1);k=c[y];null!=k?t.open="data:page/id,"+k:null==this.getPageById(y)&&delete t.open}}e=
"data:action/json,"+JSON.stringify(n)}}catch(A){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,k,n,p){var t=mxUtils.bind(this,function(y){this.loadingExtensions=!1;null!=k?k(y):this.handleError(y)});this.createTimeout(null,mxUtils.bind(this,function(y){n=null!=n?n:c.name;var A=mxUtils.bind(this,function(C){y.clear()&&t(C)}),G=mxUtils.bind(this,function(){this.loadingExtensions=