CVE-2021-23439 json
Cross-site Scripting (XSS)
published 2021-09-05 5 y ago modified 2026-06-17 4 mo ago also GHSA-97pv-4338-r5vp , EUVD-2021-2022
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- npm file-upload-with-preview 4.2.0
- n/a file-upload-with-preview 4.2.0
Exploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | file-upload-with-preview | <4.2.0 |
4.2.0 |
Affected products
- n/a file-upload-with-preview
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/johndatserakis/file-upload-with-preview/pull/40/files?file-filters%5B%5D=.js&hide-deleted-files=true%23diff-f
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-FILEUPLOADWITHPREVIEW-1579492
web, third-party-advisory
-
github.com
/johndatserakis/file-upload-with-preview/blob/develop/src/file-upload-with-preview.js%23L168
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2021-23439
advisory
-
github.com
/johndatserakis/file-upload-with-preview
package
Sources
- CVE List CVE-2021-23439
- GitHub Advisory GHSA-97pv-4338-r5vp
- NVD CVE-2021-23439
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.