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:
mxUtils.bind(this,function(){if(!k.isSelectionEmpty()){var l=k.cloneCells(k.getSelectionCells()),y=k.getBoundingBoxFromGeometry(l);l=k.moveCells(l,-y.x,-y.y);c.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+y.width+", "+y.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(k.encodeCells(l)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function l(z){return null==z||null==z.boundingBox||!isNaN(z.boundingBox.x)&&!isNaN(z.boundingBox.y)&&
!isNaN(z.boundingBox.width)&&!isNaN(z.boundingBox.height)}var y=k.getGraphBounds(),J=k.view.translate,G=k.view.scale;k.insertVertex(k.getDefaultParent(),null,"",y.x/G-J.x,y.y/G-J.y,y.width/G,y.height/G,"fillColor=none;strokeColor=red;");var P=0,p=0;k.view.states.visit(function(z,I){z=!0;l(I.shape)||(console.log("invalid shape",I.cell.id,I.shape),z=!1);l(I.text)||(console.log("invalid text",I.cell.id,I.text),z=!1);z||P++;p++});console.log("states checked",p,"invalid",P)}));c.actions.addAction("testCheckFile",