Cross-site scripting (XSS) in file-upload-with-preview
Priority LOW 29CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
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).
Why it matters now
EPSS 0.00893 59th percentileScored 2026-11-07
Fix Fixed file-upload-with-preview: 4.2.0file-upload-with-preview (npm): 4.2.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | file-upload-with-preview | before 4.2.0 | 4.2.0 | Patch available | CNA |
| — | file-upload-with-preview (npm) | before 4.2.0 | 4.2.0 | Patch available | GHSA-97pv-4338-r5vp |
- file-upload-with-preview Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available CNA
- file-upload-with-preview (npm) Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available GHSA-97pv-4338-r5vp
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:johndatserakis:file-upload-with-preview:*:*:*:*:*:node.js:*:* | before 4.2.0 | Vulnerable | Johndatserakis |
- cpe:2.3:a:johndatserakis:file-upload-with-preview:*:*:*:*:*:node.js:*:* Versions before 4.2.0 Vulnerable ·Johndatserakis
Remediation
- Fix · CNA file-upload-with-preview Fixed in 4.2.0
- Fix · GHSA-97pv-4338-r5vp file-upload-with-preview (npm) Fixed in 4.2.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23439
- 2026-10-03 Alias added: GHSA-97pv-4338-r5vp
References
Sources
- CVE-2021-23439 · CVE Program
- CVE-2021-23439 · NVD
- FIRST EPSS
- GHSA-97pv-4338-r5vp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences