Read the docs
TI-2021-06131 Aliases CVE-2021-23439GHSA-97pv-4338-r5vp

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

VendorProductAffected versionsFixed inStatusSource
—file-upload-with-previewbefore 4.2.04.2.0Patch availableCNA
—file-upload-with-preview (npm)before 4.2.04.2.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:johndatserakis:file-upload-with-preview:*:*:*:*:*:node.js:*:*before 4.2.0VulnerableJohndatserakis
  • 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

  1. 2026-10-02 Threatist record created from CVE-2021-23439
  2. 2026-10-03 Alias added: GHSA-97pv-4338-r5vp

References

Sources