Language: JavaScript
Label: safe
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:
if(0<T.length){if(null!=this.pageId)for(var F=0;F<T.length;F++)if(this.pageId==T[F].getAttribute("id")){this.currentPage=F;break}var K=this.graph.getGlobalVariable;M=this;this.graph.getGlobalVariable=function(k){var v=T[M.currentPage];return"page"==k?v.getAttribute("name")||"Page-"+(M.currentPage+1):"pagenumber"==k?M.currentPage+1:"pagecount"==k?T.length:K.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length),