CVE-2021-37504
6.1medium
jQuery-Upload-File XSS in fileNameStr
- Severity
- 6.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.87% (higher than 56% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-43x9-7hfv-mxrf
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| jquery-file-upload (npm) | up to 4.0.11 | GitHub Advisory Database |
| hayageek jquery_upload_file | 4.0.11 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de tipo cross-site scripting (XSS) en el parámetro fileNameStr de jQuery-Upload-File v4.0.11 permite a atacantes ejecutar scripts web o HTML arbitrarios por medio de un archivo diseñado con una carga útil de Javascript en el nombre del archivo.
References
| http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | third-party-advisory | |
| http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js | third-party-advisory | |
| http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css | third-party-advisory | |
| https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469 | third-party-advisory, web | |
| https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-37504 | advisory | |
| https://github.com/hayageek/jquery-upload-file | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-37504 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-43x9-7hfv-mxrf changed 2024-04-02 | CC-BY-4.0 |
| NVD | CVE-2021-37504 changed 2026-07-09 | Public domain |