CVE-2021-23439
published medium CVSS 3.1 · 4.2Cross-site Scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | file-upload-with-previewunspecified to < 4.2.0 | Affected | Not stated | snyk |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | file-upload-with-preview | unspecified to < 4.2.0 (affected · custom) | snyk · cna |
Weaknesses
1- Cross-site Scripting (XSS)
References
3- https://github.com/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168
- 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
Provider assertions
2snyk · cna
Cross-site Scripting (XSS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a42c48764cfb892fd7341bf5a06efa2a1b6cb6161ed8379ac1e7332f0730600f
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record