file-upload-with-preview@3.4.3 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.

  • latest version

    6.1.2

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable 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