file-upload-with-preview@4.0.6 vulnerabilities

Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

Direct Vulnerabilities

Known vulnerabilities in the file-upload-with-preview package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

file-upload-with-preview is an A simple file-upload utility that shows a preview of the uploaded image. Written in pure JavaScript. No dependencies. Works well with Bootstrap 4 or without a framework.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). A file containing malicious JavaScript code in the name can be uploaded (a user needs to be tricked into uploading such a file).

How to fix Cross-site Scripting (XSS)?

Upgrade file-upload-with-preview to version 4.2.0 or higher.

<4.2.0