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:
Graph.prototype.getCommonStyle=function(E){for(var M={},T=0;T<E.length;T++){var F=this.view.getState(E[T]);null!=F&&this.mergeStyle(F.style,M,0==T)}return M};Graph.prototype.mergeStyle=function(E,M,T){if(null!=E){var F={},K;for(K in E){var R=E[K];null!=R&&(F[K]=!0,null==M[K]&&T?M[K]=R:M[K]!=R&&delete M[K])}for(K in M)F[K]||delete M[K]}};Graph.prototype.getStartEditingCell=function(E,M){M=this.getCellStyle(E);M=parseInt(mxUtils.getValue(M,mxConstants.STYLE_STARTSIZE,0));this.isTable(E)&&(!this.isSwimlane(E)||
0==M)&&""==this.getLabel(E)&&0<this.model.getChildCount(E)&&(E=this.model.getChildAt(E,0),M=this.getCellStyle(E),M=parseInt(mxUtils.getValue(M,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(E)&&(!this.isSwimlane(E)||0==M)&&""==this.getLabel(E)&&0<this.model.getChildCount(E))for(M=0;M<this.model.getChildCount(E);M++){var T=this.model.getChildAt(E,M);if(this.isCellEditable(T)){E=T;break}}return E};Graph.prototype.copyStyle=function(E){return this.getCellStyle(E,!1)};Graph.prototype.pasteStyle=