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:
function(E,N,T){T=null!=T?T:Graph.pasteStyles;Graph.removeKeys(E,function(F){return 0>mxUtils.indexOf(T,F)});this.updateCellStyles(E,N)};Graph.prototype.updateCellStyles=function(E,N){this.model.beginUpdate();try{for(var T=0;T<N.length;T++)if(this.model.isVertex(N[T])||this.model.isEdge(N[T])){var F=this.getCellStyle(N[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,