Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
g)}}catch(q){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var g=document.createElement("div"),q=this.editor.graph,p=q.getLinkForCell(e);null!=p&&q.setLinkForCell(e,this.updatePageLink(c,p));if(q.isHtmlLabel(e)){g.innerHTML=Graph.sanitizeHtml(q.getLabel(e));for(var t=g.getElementsByTagName("a"),x=!1,B=0;B<t.length;B++)p=t[B].getAttribute("href"),null!=p&&(t[B].setAttribute("href",this.updatePageLink(c,p)),x=!0);x&&q.labelChanged(e,g.innerHTML)}for(B=0;B<q.model.getChildCount(e);B++)this.updatePageLinksForCell(c,
q.model.getChildAt(e,B))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var g=c[e.substring(e.indexOf(",")+1)];e=null!=g?"data:page/id,"+g:null}else if("data:action/json,"==e.substring(0,17))try{var q=JSON.parse(e.substring(17));if(null!=q.actions){for(var p=0;p<q.actions.length;p++){var t=q.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var x=t.open.substring(t.open.indexOf(",")+1);g=c[x];null!=g?t.open="data:page/id,"+g:null==this.getPageById(x)&&delete t.open}}e=