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:
!1,!0)}finally{I.model.endUpdate()}}}catch(V){if(p)throw V;this.handleError(V)}return B};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var g=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=g&&(e.originalSrc="data:page/id,"+
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,