CVE-2017-16101: Directory Traversal in serverwg

serverwg Updated 02 Oct 2025

Summary

01/09/2020
No i
High
7.5

CVE-2017-16101: Directory Traversal in serverwg. Affects serverwg versions >= 0.0.0. 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

The serverwg package is a simple HTTP server used for local development. It provides basic functionality for serving files over HTTP. However, it is vulnerable to a directory traversal issue, which allows an attacker to access the filesystem by manipulating the URL. This vulnerability can lead to unauthorized access to sensitive files and potentially compromise the system's security.

Vulnerability Detail

The directory traversal vulnerability in serverwg arises from insufficient input validation. By including "../" in the URL, an attacker can navigate to parent directories and access files outside the intended scope. For example, an attacker can request the URL GET /../../../../../../../../../../etc/passwd to retrieve the contents of the /etc/passwd file. This can expose sensitive information and potentially lead to further exploitation of the system.

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 patch available, a workaround for this vulnerability is to implement input validation and sanitization on the server side. This can involve checking the requested file paths and ensuring they are within the intended scope. Additionally, access controls can be implemented to restrict access to sensitive files and directories.

Conclusion

The serverwg package is vulnerable to a directory traversal issue that allows unauthorized access to the filesystem. No patch is available, so it is recommended to use the package only for local development and switch to a different package for production. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for serverwg →

Share this vulnerability

FAQ

The vulnerability allows an attacker to access files outside the intended scope, potentially leading to unauthorized access to sensitive information and further exploitation of the system.

No, there is currently no patch available for this vulnerability.

Yes, this vulnerability can be exploited remotely by sending crafted requests to the affected server.

There are no known instances of this vulnerability being exploited in the wild.

If you are using the serverwg package, it is recommended to only use it for local development purposes. If the functionality provided by serverwg is required for production, switch to a different package that does not have this vulnerability.

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