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:
la.getChildren(xa[0]);null!=va&&(x=this.moveCells(va,L,Q,!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),Q=this.snap(Q));var Fa=this.getBoundingBoxFromGeometry(x,!0);null!=Fa&&this.moveCells(x,L-Fa.x,Q-Fa.y)}}finally{this.model.endUpdate()}}return x};Graph.prototype.encodeCells=function(x){for(var L={},Q=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<Q.length;ea++){oa.add(xa,Q[ea]);var sa=this.view.getState(x[ea]);if(null!=sa){var va=this.getCellGeometry(Q[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)),Q);return la.encode(oa)};Graph.prototype.isSwimlane=function(x,L){var Q=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(Q=this.getCurrentCellStyle(x,L)[mxConstants.STYLE_SHAPE]);return Q==mxConstants.SHAPE_SWIMLANE||"table"==Q||"tableRow"==Q};var M=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&M.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):