CVE-2018-16493: Path Traversal in simplehttpserver

static-resource-server Updated 02 Oct 2025

Summary

07/02/2019
No i
High
Not published

CVE-2018-16493: Path Traversal in simplehttpserver. Affects static-resource-server versions < 1.7.2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The simplehttpserver package is an npm package that provides a simple HTTP server for serving static files. It allows users to quickly set up a local server to serve files from a specified directory. However, versions prior to 0.2.1 are vulnerable to a Path Traversal vulnerability. This vulnerability arises due to insufficient input sanitization, which allows attackers to access server files by using relative paths.

Vulnerability Detail

The Path Traversal vulnerability in simplehttpserver allows attackers to bypass the intended file access restrictions and access sensitive files on the server. By manipulating the file path in the HTTP request, an attacker can traverse directories and access files outside of the intended directory. This can lead to unauthorized disclosure of sensitive information or even remote code execution if the accessed files contain executable code.

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 →

Conclusion

The simplehttpserver package prior to version 0.2.1 is vulnerable to a Path Traversal vulnerability that allows attackers to access sensitive files on the server. To mitigate this risk, it is crucial to upgrade to version 0.2.1 or later. Additionally, it is recommended to regularly update package dependencies to ensure the use of the latest secure versions. For further assistance, please contact DevNack.com.

See every vulnerability recorded for static-resource-server →

Share this vulnerability

FAQ

A Path Traversal vulnerability, also known as Directory Traversal, allows an attacker to access files or directories outside of the intended scope. By manipulating file paths or directory traversal sequences, an attacker can bypass access restrictions and potentially access sensitive information or execute arbitrary code.

The impact of this vulnerability can vary depending on the specific context and the files accessible to the server. In some cases, it can lead to unauthorized disclosure of sensitive information. In more severe cases, it can enable remote code execution, allowing an attacker to execute arbitrary commands on the server.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file, and Vulert will analyze it to identify any known vulnerabilities, including this Path Traversal vulnerability in simplehttpserver.

Currently, there are no known workarounds for this vulnerability. It is recommended to upgrade to the latest secure version of the simplehttpserver package to mitigate the risk.

For further support on vulnerability remediation or any other security concerns, you can reach out to info@devnack.com. Our team of experts will be happy to assist you.

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