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:
try{u.labelChanged(B,d),Graph.isLink(d)&&u.setLinkForCell(B,d)}finally{u.model.endUpdate()}}u.setSelectionCell(B)}else v=u.getInsertPoint(),u.isMouseInsertPoint()&&(B=0,u.lastPasteXml==d&&0<u.pasteCounter&&u.pasteCounter--),v=this.insertTextAt(d,v.x+B,v.y+B,!0),u.setSelectionCells(v);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return v};EditorUi.prototype.pasteCells=function(d,g,n,t){if(!mxEvent.isConsumed(d)){var u=