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:
EditorUi.prototype.centerShapePicker=function(b,e,g,n,y){if(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)b.style.width="40px";var q=b.getBoundingClientRect();y==mxConstants.DIRECTION_NORTH?(g-=q.width/2-10,n-=q.height+6):y==mxConstants.DIRECTION_SOUTH?(g-=q.width/2-10,n+=e.height+6):y==mxConstants.DIRECTION_WEST?(g-=q.width+6,n-=q.height/2-10):y==mxConstants.DIRECTION_EAST&&(g+=e.width+6,n-=q.height/2-10);b.style.left=g+"px";b.style.top=n+"px"};