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:
t-D/2;c.begin();c.moveTo(l,u);c.lineTo(l,u+t);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha-D/2);c.moveTo(l+B,ha);c.lineTo(l+B+D,ha+D/2);c.moveTo(l+B,ha);c.lineTo(l+p-B,ha);c.moveTo(l+p,u);c.lineTo(l+p,u+t);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha-D/2);c.moveTo(l+p-B,ha);c.lineTo(l+p-D-B,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",xa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,l,u,p,t){this.outline||c.setStrokeColor(null);if(null!=
this.style){var B=c.pointerEvents,D=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||D||(c.pointerEvents=!1);var ha="1"==mxUtils.getValue(this.style,"top","1"),I="1"==mxUtils.getValue(this.style,"left","1"),ua="1"==mxUtils.getValue(this.style,"right","1"),na="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||D||this.outline||ha||ua||na||I?(c.rect(l,u,p,t),c.fill(),c.pointerEvents=B,c.setStrokeColor(this.stroke),c.setLineCap("square"),
c.begin(),c.moveTo(l,u),this.outline||ha?c.lineTo(l+p,u):c.moveTo(l+p,u),this.outline||ua?c.lineTo(l+p,u+t):c.moveTo(l+p,u+t),this.outline||na?c.lineTo(l,u+t):c.moveTo(l,u+t),(this.outline||I)&&c.lineTo(l,u),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",sa);mxUtils.extend(va,mxEllipse);va.prototype.paintVertexShape=function(c,l,u,p,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==