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:
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J,G){p=new mxCell(p,new mxGeometry(0,0,q,C),J);p.vertex=!0;null==G&&(G=k.getCenterInsertPoint(k.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=G.x;p.geometry.y=G.y;return A(p)};c.actions.put("insertText",