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:
mxVsdxCanvas2D.prototype.close=function(){this.lastMoveToX==this.lastX&&this.lastMoveToY==this.lastY||this.lineTo(this.lastMoveToX,this.lastMoveToY)};mxVsdxCanvas2D.prototype.addForeignData=function(h,y){var A=this.createElt("ForeignData");A.setAttribute("ForeignType","Bitmap");h=h.toUpperCase();"BMP"!=h&&A.setAttribute("CompressionType",h);h=this.createElt("Rel");h.setAttribute("r:id","rId"+y);A.appendChild(h);this.shape.appendChild(A);this.shapeType="Foreign"};