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:
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,F){p=new mxCell(p,new mxGeometry(0,0,q,C),J);p.vertex=!0;null==F&&(F=k.getCenterInsertPoint(k.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=F.x;p.geometry.y=F.y;return B(p)};c.actions.put("insertText",