Vulnerability · Published Feb 25, 2022 · Assigned by mitre
CVE-2021-37504
Medium 6.1
In plain English
A medium-severity security flaw in the jquery-file-upload package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities).
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)0.9%top 41.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | jquery-file-upload | no fix listed | GHSA-43x9-7hfv-mxrf |
Affected products (as reported)
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