MEDIUM4.2
GHSA-97pv-4338-r5vp
Cross-site Scripting in file-upload-with-preview
Quick fix
GHSA-97pv-4338-r5vp — file-upload-with-preview: upgrade to the fixed version with the command below.
npm install file-upload-with-preview@4.2.0Details
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).
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/file-upload-with-preview
Introduced in:
0Fixed in: 4.2.0Fix
npm install file-upload-with-preview@4.2.0References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23439[ADVISORY]
- https://github.com/johndatserakis/file-upload-with-preview/pull/40/files?file-filters%5B%5D=.js&hide-deleted-files=true%23diff-fe47b243de17419c0daa22cd785cd754baed60cf3679d3da1d6fe006f9f4a7f0R174[WEB]
- https://github.com/johndatserakis/file-upload-with-preview[PACKAGE]
- https://github.com/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168[WEB]
- https://snyk.io/vuln/SNYK-JS-FILEUPLOADWITHPREVIEW-1579492[WEB]