VYPR
Moderate severityNVD Advisory· Published Dec 4, 2018· Updated Aug 5, 2024

CVE-2018-16478

CVE-2018-16478

Description

A path traversal vulnerability in simplehttpserver <=0.2.1 allows listing any file outside the web root directory.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A path traversal vulnerability in simplehttpserver <=0.2.1 allows listing any file outside the web root directory.

Vulnerability

A path traversal vulnerability exists in simplehttpserver versions <=0.2.1 (also reported as <=0.3.0 in one advisory [3]). The application fails to properly validate file paths, allowing users to traverse directories and list files outside the intended web root [1][2]. This affects all installations using the default configuration when the server is started without additional path restrictions.

Exploitation

An attacker with network access to the server can exploit this by crafting HTTP requests containing path traversal sequences (e.g., ../) in the URL [1]. No authentication or special privileges are required, as the server is typically exposed to serve files. A reported HackerOne submission (ID 403703) details the exploit steps [1][2].

Impact

Successful exploitation allows an attacker to list files in arbitrary directories outside the web root, leading to information disclosure [1][2][3]. This can expose sensitive files such as configuration files, source code, or other data stored on the server. The impact is limited to directory listing and file read; no remote code execution or file write is described in the references.

Mitigation

The vulnerability is fixed in version 0.2.1+ (or 0.3.0+ per some sources) [2][3]. Users should upgrade to the latest patched version. As a temporary workaround, avoid exposing simplehttpserver to untrusted networks or use a reverse proxy with path validation. The project may be inactive; no further patches are described for newer reported versions.

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
simplehttpservernpm
<= 0.3.0

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.