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){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return fa.apply(this,arguments)};this.selectRegion=function(S,U){var Q=mxEvent.isAltDown(U)?S:null;S=this.getCells(S.x,S.y,S.width,S.height,null,null,Q,null,!0);if(this.isToggleEvent(U))for(Q=0;Q<S.length;Q++)this.selectCellForEvent(S[Q],U);else this.selectCellsForEvent(S,U);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=