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