npm package report

Is file-upload-with-preview safe?

1 known vulnerability, worst severity MODERATE.

cvss
4.2

how bad it is if exploited, out of 10

epss
0.90%

chance of exploitation in the next 30 days

xyz score
not scored

CyberXYZ composite, out of 10

fig. 01 — GHSA-97pv-4338-r5vp, the advisory selected below

// advisories

GHSA-97pv-4338-r5vp

MODERATECVE-2021-23439

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
< 4.2.0
Fixed in
4.2.0
Weakness
CWE-79
Published
2021-09-07
Source
github

GHSANVDMITREreferencereferencereference


// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


Checked 2026-09-22 at 01:47 UTC. The most recent advisory here was published 2021-09-07. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is file-upload-with-preview safe? npm package security report | CyberXYZ