GitHub Advisoryadvisory · npm
GHSA-g8wf-rcg3-qw4q Directory Traversal in tinyserver2
HIGH
Official page ↗
- Aliases
- CVE-2017-16085
- Ecosystem
- npm
- Packages
- tinyserver2
- Severity
- High
- Weaknesses
- CWE-22
- Reviewed
- 2020-06-16
Affected packages
• npm tinyserver2: < 0.6.0 → fixed in 0.6.0
Description
Affected versions of `tinyserver2` resolve relative file paths, resulting in a directory traversal vulnerability. A malicious actor can use this vulnerability to access files outside of the intended directory root, which may result in the disclosure of private files on the vulnerable system.
Example request:
```http
GET /../../../../../../../../../../etc/passwd HTTP/1.1
host:foo
```
Recommendation
Update to v0.6.0 or later.
Related
Alias · CVE (1)
- CVE-2017-16085 tinyserver2 is a webserver for static files. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness