CVE-2018-3730: Path Traversal in mcstatic

mcstatic Updated 02 Oct 2025

Summary

27/07/2018
No i
High
7.5

CVE-2018-3730: Path Traversal in mcstatic. Affects mcstatic versions < 0.0.20. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

mcstatic is an npm package that provides a static file server for Node.js applications. It allows developers to serve static files such as HTML, CSS, and JavaScript files. However, all versions of mcstatic are vulnerable to a path traversal vulnerability, which can allow an attacker to access files outside of the intended directory.

Vulnerability Detail

The path traversal vulnerability in mcstatic allows an attacker to specify a path that includes directory traversal sequences (e.g., '../') to access files outside of the intended directory. This can lead to unauthorized access to sensitive files or even remote code execution if the attacker can upload malicious files to the server. The vulnerability has a CVSS score of 7.5, indicating a high severity.

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 fix available, the best workaround is to find an alternative package that provides similar functionality and does not have this vulnerability. It is important to thoroughly review the security of any alternative package before using it in a production environment.

Conclusion

The mcstatic package is vulnerable to a path traversal vulnerability, which can lead to unauthorized access to sensitive files or remote code execution. Currently, there is no fix available, so it is recommended to avoid using mcstatic until a fix is provided. Consider finding an alternative package with similar functionality and ensure its security before using it. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for mcstatic →

Share this vulnerability

FAQ

mcstatic is an npm package that provides a static file server for Node.js applications.

A path traversal vulnerability allows an attacker to access files outside of the intended directory by manipulating file paths.

The path traversal vulnerability in mcstatic can lead to unauthorized access to sensitive files or even remote code execution if the attacker can upload malicious files to the server.

No, there is currently no fix available for this vulnerability. It is recommended to avoid using the mcstatic module until a fix is provided.

The best workaround is to find an alternative package that provides similar functionality and does not have this vulnerability. Thoroughly review the security of any alternative package before using it in a production environment.

Related vulnerabilities

Recent vulnerabilities recorded for mcstatic.

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