Language: JavaScript
Label: safe
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(g,y){var z=this.createElt("ForeignData");z.setAttribute("ForeignType","Bitmap");g=g.toUpperCase();"BMP"!=g&&z.setAttribute("CompressionType",g);g=this.createElt("Rel");g.setAttribute("r:id","rId"+y);z.appendChild(g);this.shape.appendChild(z);this.shapeType="Foreign"};