CVE-2019-15602: Cross-Site Scripting in fileview

fileview Updated 02 Oct 2025

Summary

01/04/2020
No i
High
Not published

CVE-2019-15602: Cross-Site Scripting in fileview. Affects fileview versions < 0.1.6. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The fileview package is an npm package that provides functionality for viewing files. It allows users to display and interact with various file types within a web application. However, all versions of fileview are vulnerable to Cross-Site Scripting (XSS) attacks. This vulnerability occurs due to the package's failure to properly sanitize filenames, enabling attackers to execute arbitrary JavaScript code in the victim's browser through files with malicious names.

Vulnerability Detail

The Cross-Site Scripting (XSS) vulnerability in fileview allows attackers to inject and execute arbitrary JavaScript code in the victim's browser. By crafting filenames with malicious code, an attacker can trick the application into rendering the code as part of the file's display. When a user interacts with the file, the injected code is executed, potentially leading to unauthorized actions, data theft, or further exploitation of the user's session. This vulnerability has a high severity rating and is classified under CWE-79.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no official fix for this vulnerability, a possible workaround is to implement additional client-side validation to sanitize filenames before rendering them in the application. This can be achieved by using a combination of regular expressions and input validation techniques to ensure that filenames do not contain any malicious code. Here's an example in JavaScript:

function sanitizeFilename(filename) {
  // Implement your sanitization logic here
  return filename;
}

Conclusion

The fileview package is vulnerable to Cross-Site Scripting (XSS) attacks due to its failure to properly sanitize filenames. This can allow attackers to execute arbitrary JavaScript code in the victim's browser. Currently, no fix is available for this vulnerability, so it is recommended to consider using an alternative package. Implementing additional client-side validation to sanitize filenames can serve as a temporary workaround. For more information and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for fileview →

Share this vulnerability

FAQ

The impact of this vulnerability can be severe, as it allows attackers to execute arbitrary JavaScript code in the victim's browser. This can lead to unauthorized actions, data theft, or further exploitation of the user's session.

No, currently there is no fix available for this vulnerability in the fileview package. It is recommended to use an alternative package until a fix is released.

To mitigate the risk of this vulnerability, you can implement additional client-side validation to sanitize filenames before rendering them in the application. This can help prevent the execution of arbitrary JavaScript code.

While specific exploits for this vulnerability in the fileview package may not be publicly known, the presence of this vulnerability increases the risk of potential attacks. It is important to address this vulnerability as soon as a fix becomes available.

You can find more information about this vulnerability in the fileview package in the GitHub Advisory Database. Additionally, you can reach out to info@devnack.com for further support on vulnerability remediation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback