Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
mxUtils.bind(this,function(ca){C=null!=C?C:"pdf"==f?"application/pdf":"image/"+f;if(null!=u)try{this.exportFile(u,H,C,!0,ka,ca)}catch(ja){this.handleError(ja)}else this.spinner.spin(document.body,mxResources.get("saving"))&&fa.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=fa.getStatus()&&299>=fa.getStatus())try{this.exportFile(fa.getText(),H,C,!0,ka,ca)}catch(ja){this.handleError(ja)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(ja){this.spinner.stop();