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(S,U,Q){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ia.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&&(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),
"locked","0"))return!0;S=this.model.getParent(S)}return!1};var da=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,U){"mouseDown"==U.getProperty("eventName")&&(S=U.getProperty("event").getState(),da=null==S||this.isSelectionEmpty()||this.isCellSelected(S.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(S,U){if(!mxEvent.isMultiTouchEvent(U)){S=U.getProperty("event");var Q=U.getProperty("cell");null==Q?(S=mxUtils.convertPoint(this.container,