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:
A.push("page-id="+this.currentPage.getId());return A};EditorUi.prototype.createLink=function(d,g,n,t,u,v,A,H,L,F){L=this.createUrlParameters(d,g,n,t,u,v,L);d=this.getCurrentFile();g=!0;null!=A?n="#U"+encodeURIComponent(A):(d=this.getCurrentFile(),H||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&null!=d&&null!=d.getTitle()&&d.getTitle()!=
this.defaultFilename&&L.push("title="+encodeURIComponent(d.getTitle()));F&&1<n.length&&(L.push("open="+n.substring(1)),n="");return(t&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<L.length?"?"+L.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,t,u,v,A,H,L,F,S,p){this.getBasenames();var q={};""!=u&&u!=mxConstants.NONE&&(q.highlight=u);"auto"!==