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:
var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;g=new XMLHttpRequest;g.open("GET",m,!0);g.responseType="arraybuffer";g.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?c.convertSvg2Png(this.response,!1,function(p){c.zip.file("visio/media/"+d,p.substring(22),{base64:!0})}):c.zip.file("visio/media/"+d,this.response)),c.filesLoading--,0==c.filesLoading))c.onFilesLoaded()};g.send()}this.images.push(d);this.shapeImg={type:f,id:this.images.length+1};m=this.state;A*=m.scale;