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:
function(E,M,T){T=null!=T?T:Graph.pasteStyles;Graph.removeKeys(E,function(F){return 0>mxUtils.indexOf(T,F)});this.updateCellStyles(E,M)};Graph.prototype.updateCellStyles=function(E,M){this.model.beginUpdate();try{for(var T=0;T<M.length;T++)if(this.model.isVertex(M[T])||this.model.isEdge(M[T])){var F=this.getCellStyle(M[T],!1),K=F[mxConstants.STYLE_PERIMETER],R=!1;for(d in E){var W=E[d];if(F[d]!=W){if(d==mxConstants.STYLE_SHAPE&&"umlLifeline"==F[d]&&"umlLifeline"!=W){R=!0;var d="participant"}this.setCellStyles(d,