{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-23439","published":"2021-09-05T14:15:07.370000Z","last_modified":"2026-06-17T03:38:45.947000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:johndatserakis:file-upload-with-preview:*:*:*:*:*:node.js:*:*","part":"a","vendor":"johndatserakis","product":"file-upload-with-preview","version_end_excluding":"4.2.0"}],"cpes_truncated":false,"vendors":["johndatserakis"],"products":["johndatserakis/file-upload-with-preview"],"epss":{"score":0.00893,"percentile":0.60506,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-97pv-4338-r5vp","ecosystem":"npm","name":"file-upload-with-preview","purl":"pkg:npm/file-upload-with-preview","ranges":[{"introduced":"0","fixed":"4.2.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-23439/","html_en":"/en/cve/CVE-2021-23439/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23439","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23439"},"untrusted":{"vendor_name":"Johndatserakis","product_name":"File-upload-with-preview","desc_en":"This affects the package file-upload-with-preview before 4.2.0. A file containing malicious JavaScript code in the name can be uploaded (a user needs to be tricked into uploading such a file).","affected":[],"references":[{"url":"https://github.com/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168","tags":["Broken Link"]},{"url":"https://github.com/johndatserakis/file-upload-with-preview/pull/40/files?file-filters%5B%5D=.js&hide-deleted-files=true%23diff-fe47b243de17419c0daa22cd785cd754baed60cf3679d3da1d6fe006f9f4a7f0R174","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-FILEUPLOADWITHPREVIEW-1579492","tags":["Third Party Advisory"]}]}}