# CVE-2021-37504: jQuery-Upload-File XSS in fileNameStr

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Published: 2022-02-25T18:15:47.000Z
- Modified: 2026-07-09T01:17:00.063Z
- Also known as: GHSA-43x9-7hfv-mxrf
- Weaknesses: CWE-79
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- jquery-file-upload (npm): up to 4.0.11
- hayageek jquery_upload_file: 4.0.11

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## 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

- CVE List: [CVE-2021-37504](https://www.cve.org/CVERecord?id=CVE-2021-37504), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-43x9-7hfv-mxrf](https://github.com/advisories/GHSA-43x9-7hfv-mxrf), CC-BY-4.0, modified 2024-04-02
- NVD: [CVE-2021-37504](https://nvd.nist.gov/vuln/detail/CVE-2021-37504), Public domain, modified 2026-07-09

---

Page: https://cve.day/CVE-2021-37504 · Whole record: https://cve.day/CVE-2021-37504.json · Rebuilt by cve.day 2026-11-25T22:58:07.072Z
