CVE-2021-23439
4.2medium
Cross-site Scripting (XSS)
- Severity
- 4.2medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.89% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-97pv-4338-r5vp
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
| Product or package | Versions | Reported by |
|---|---|---|
| file-upload-with-preview | from unspecified before 4.2.0 | CVE List |
| file-upload-with-preview (npm) | before 4.2.0 | GitHub Advisory Database |
| johndatserakis file-upload-with-preview | before 4.2.0 | NVD |
All scores
| snyk | 4.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| GitHub | 4.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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).
NVD (es)
Esto afecta al paquete file-upload-with-preview versiones anteriores a 4.2.0. Un archivo que contenga código JavaScript malicioso en el nombre puede ser cargado (un usuario necesita ser engañado para que cargue dicho archivo)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23439 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-97pv-4338-r5vp changed 2026-03-13 | CC-BY-4.0 |
| NVD | CVE-2021-23439 changed 2026-06-17 | Public domain |