CVE-2021-37504
MEDIUM 6.1CVSS 3.1jQuery-Upload-File XSS in fileNameStr
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.
- Published
- 25 Feb 2022
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-43x9-7hfv-mxrf
- Sources
- NVDJSONOSV GHSA-43x9-7hfv-mxrfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hayageek | jquery_upload_filecpe:2.3:a:hayageek:jquery_upload_file:4.0.11:*:*:*:*:*:*:* |
= 4.0.11 | |
| OSV | npm | jquery-file-upload | <= 4.0.11 |
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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Feb 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 26 Feb 2022)