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:
this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var ja=f.getExportVariables;f.getExportVariables=function(){var U=ja.apply(this,arguments),Q=d.getCurrentFile();null!=Q&&(U.filename=Q.getTitle());U.pagecount=null!=d.pages?d.pages.length:1;U.page=null!=d.currentPage?d.currentPage.getName():"";U.pagenumber=
null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return U};var fa=f.getGlobalVariable;f.getGlobalVariable=function(U){var Q=d.getCurrentFile();return"filename"==U&&null!=Q?Q.getTitle():"page"==U&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==U?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==U?null!=d.pages?d.pages.length:1:fa.apply(this,arguments)};var ca=null;this.addListener("fileDescriptorChanged",function(){var U=