Description
A cross-site scripting (XSS) vulnerability in the fileNameStr parameter of jQuery-Upload-File v4.0.11 allows attackers to execute arbitrary web scripts or HTML via a crafted file with a Javascript payload in the file name.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | jquery-file-upload | <= 4.0.11 | — | GHSA-43x9-7hfv-mxrf |
References
- http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js
- http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css
- https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469
- https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js