GHSA-97pv-4338-r5vp

Suggest an improvement
Source
https://github.com/advisories/GHSA-97pv-4338-r5vp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-97pv-4338-r5vp/GHSA-97pv-4338-r5vp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-97pv-4338-r5vp
Aliases
  • CVE-2021-23439
Published
2021-09-07T23:08:54Z
Modified
2026-03-13T22:11:17.274119Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site Scripting in file-upload-with-preview
Details

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).

Database specific
{
    "github_reviewed_at": "2021-09-07T18:05:06Z",
    "github_reviewed": true,
    "severity": "MODERATE",
    "nvd_published_at": "2021-09-05T14:15:00Z",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

npm / file-upload-with-preview

Package

Name
file-upload-with-preview
View open source insights on deps.dev
Purl
pkg:npm/file-upload-with-preview

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-97pv-4338-r5vp/GHSA-97pv-4338-r5vp.json"