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:
la.getChildren(xa[0]);null!=va&&(x=this.moveCells(va,L,P,!1,this.getDefaultParent()),oa[la.getChildAt(la.root,0).getId()]=this.getDefaultParent().getId())}if(null!=x&&(this.createCellMapping(ea,sa,oa),this.updateCustomLinks(oa,x),X)){this.isGridEnabled()&&(L=this.snap(L),P=this.snap(P));var Fa=this.getBoundingBoxFromGeometry(x,!0);null!=Fa&&this.moveCells(x,L-Fa.x,P-Fa.y)}}finally{this.model.endUpdate()}}return x};Graph.prototype.encodeCells=function(x){for(var L={},P=this.cloneCells(x,null,L),X=
new mxDictionary,ea=0;ea<x.length;ea++)X.put(x[ea],!0);var la=new mxCodec,oa=new mxGraphModel,xa=oa.getChildAt(oa.getRoot(),0);for(ea=0;ea<P.length;ea++){oa.add(xa,P[ea]);var sa=this.view.getState(x[ea]);if(null!=sa){var va=this.getCellGeometry(P[ea]);null!=va&&va.relative&&!this.model.isEdge(x[ea])&&null==X.get(this.model.getParent(x[ea]))&&(va.offset=null,va.relative=!1,va.x=sa.x/sa.view.scale-sa.view.translate.x,va.y=sa.y/sa.view.scale-sa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(L,
this.createCellLookup(x)),P);return la.encode(oa)};Graph.prototype.isSwimlane=function(x,L){var P=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(P=this.getCurrentCellStyle(x,L)[mxConstants.STYLE_SHAPE]);return P==mxConstants.SHAPE_SWIMLANE||"table"==P||"tableRow"==P};var N=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&N.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):