VDB
Sign up
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.0

Details

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.0
Fixnpm install file-upload-with-preview@4.2.0

References