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:
EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],p=0;p<b.length;p++)try{g.push(this.clonePage(b[p]))}catch(y){e.push(mxResources.get("pageWithNumber",[p+1])+" ("+b[p].getName()+"): "+y.message)}if(0<e.length)throw Error(e.join("\n"));return g};