Vulnerability · Published Sep 5, 2021 · Assigned by snyk

CVE-2021-23439Cross-site Scripting (XSS)

Medium 4.2

In plain English

A medium-severity security flaw in file-upload-with-preview. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.9%top 40.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmfile-upload-with-preview4.2.0GHSA-97pv-4338-r5vp

Affected products (as reported)

VendorProductVersions
n/a file-upload-with-preview unspecified – before 4.2.0

References