Description
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).
Remediation
References
https://github.com/johndatserakis/file-upload-with-preview/pull/40/files?file-filters%5B%5D=.js&hide-deleted-files=true%23diff-fe47b243de17419c0daa22cd785cd754baed60cf3679d3da1d6fe006f9f4a7f0R174
https://snyk.io/vuln/SNYK-JS-FILEUPLOADWITHPREVIEW-1579492
https://github.com/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168
Related Vulnerabilities
CVE-2021-29485 Vulnerability in maven package io.ratpack:ratpack-session
CVE-2023-41037 Vulnerability in maven package org.webjars.npm:openpgp
CVE-2021-22096 Vulnerability in maven package org.springframework:spring-webflux
CVE-2009-0580 Vulnerability in maven package org.apache.tomcat:catalina
CVE-2016-10735 Vulnerability in maven package org.jszip.redist:bootstrap