Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS05N3B2LTQzMzgtcjV2cM0Vnw
Cross-site Scripting in file-upload-with-preview
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).
Permalink: https://github.com/advisories/GHSA-97pv-4338-r5vpJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05N3B2LTQzMzgtcjV2cM0Vnw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 3 years ago
Updated: over 1 year ago
CVSS Score: 4.2
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Identifiers: GHSA-97pv-4338-r5vp, CVE-2021-23439
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23439
- https://github.com/johndatserakis/file-upload-with-preview/pull/40/files?file-filters%5B%5D=.js&hide-deleted-files=true%23diff-fe47b243de17419c0daa22cd785cd754baed60cf3679d3da1d6fe006f9f4a7f0R174
- https://github.com/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168
- https://snyk.io/vuln/SNYK-JS-FILEUPLOADWITHPREVIEW-1579492
- https://github.com/advisories/GHSA-97pv-4338-r5vp
Blast Radius: 8.1
Affected Packages
npm:file-upload-with-preview
Dependent packages: 1Dependent repositories: 87
Downloads: 21,884 last month
Affected Version Ranges: < 4.2.0
Fixed in: 4.2.0
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.3.0, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.1.0
All unaffected versions: 4.2.0, 4.3.0, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.1.2