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:
BmpDecoder.prototype.bit24=function(){var h=3*this.width%4;0!=h&&(h=4-h);for(var y=this.height-1;0<=y;y--){for(var A=0;A<this.width;A++){var B=this.buffer[this.pos++],m=this.buffer[this.pos++],g=this.buffer[this.pos++],b=y*this.width*4+4*A;this.data[b]=g;this.data[b+1]=m;this.data[b+2]=B;this.data[b+3]=255}this.pos+=h}};