{"api_version":"1","generated_at":"2026-07-17T19:16:26+00:00","cve":"CVE-2021-37504","urls":{"html":"https://cve.report/CVE-2021-37504","api":"https://cve.report/api/cve/CVE-2021-37504.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-37504","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-37504"},"summary":{"title":"CVE-2021-37504","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2022-02-25 19:15:12","updated_at":"2026-07-09 01:17:00"},"problem_types":["CWE-79","n/a"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"6.1","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","baseScore":6.1,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"4.3","severity":"","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"}}],"references":[{"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css","name":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js","name":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","name":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469","name":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"jquery-upload-file/jquery.uploadfile.js at master · hayageek/jquery-upload-file · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js","name":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"404"},{"url":"http://haygeek.com","name":"http://haygeek.com","refsource":"MITRE","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://jquery-upload-file.com","name":"http://jquery-upload-file.com","refsource":"MITRE","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-37504","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37504","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"37504","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hayageek","cpe5":"jquery_upload_file","cpe6":"4.0.11","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2021","cve_id":"37504","cve":"CVE-2021-37504","epss":"0.008460000","percentile":"0.537580000","score_date":"2026-07-12","updated_at":"2026-07-13 00:07:38"},"legacy_qids":[{"cve":"CVE-2021-37504","qid":"997941","title":"NodeJs (Npm) Security Update for jquery-file-upload (GHSA-43x9-7hfv-mxrf)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-07-09T00:14:33.004Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2026-07-05T15:48:41.706Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"url":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"},{"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"},{"url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"},{"url":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469"},{"url":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-37504","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","refsource":"MISC","url":"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"},{"name":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js","refsource":"MISC","url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"},{"name":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css","refsource":"MISC","url":"http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"},{"name":"http://haygeek.com","refsource":"MISC","url":"http://haygeek.com"},{"name":"http://jquery-upload-file.com","refsource":"MISC","url":"http://jquery-upload-file.com"},{"name":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469","refsource":"MISC","url":"https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469"},{"name":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js","refsource":"MISC","url":"https://raw.githubusercontent.com/hayageek/jquery-upload-file/master/js/jquery.uploadfile.js"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2021-37504","datePublished":"2022-02-25T18:15:47.000Z","dateReserved":"2021-07-26T00:00:00.000Z","dateUpdated":"2026-07-09T00:14:33.004Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2022-02-25 19:15:12","lastModifiedDate":"2026-07-09 01:17:00","problem_types":["CWE-79","n/a"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","baseScore":6.1,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":2.7}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:hayageek:jquery_upload_file:4.0.11:*:*:*:*:*:*:*","matchCriteriaId":"2E34A716-E5D6-43F1-9600-B773C63F3C2C"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"37504","Ordinal":"1","Title":"CVE-2021-37504","CVE":"CVE-2021-37504","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"37504","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2021-37504"}]}}}