CVE-2017-16097: Directory Traversal in tiny-http
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.67352%
CWE
Published
9/1/2020
Updated
9/7/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tiny-http | npm | >= 0.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path resolution when handling HTTP requests. The advisory explicitly states that the package resolves relative paths without adequate safeguards. In Node.js
servers, the request handler that maps URL paths to filesystem paths (typically using methods like path.join()
or path.resolve()
) is the primary suspect. While the exact implementation isn't visible, the pattern matches classic path traversal vulnerabilities where user input is directly concatenated with a base directory without validation. The high confidence comes from the vulnerability's clear root cause (CWE-22
) and the explicit PoC demonstrating traversal via URL manipulation.