{"id":"GHSA-g8wf-rcg3-qw4q","summary":"Directory Traversal in tinyserver2","details":"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.\n\n**Example request:**\n```http\nGET /../../../../../../../../../../etc/passwd HTTP/1.1\nhost:foo\n```\n\n\n## Recommendation\n\nUpdate to v0.6.0 or later.","aliases":["CVE-2017-16085"],"modified":"2023-11-08T03:59:03.940451Z","published":"2018-07-24T15:01:34Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-06-16T21:36:37Z","nvd_published_at":null,"cwe_ids":["CWE-22"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16085"},{"type":"WEB","url":"https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/tinyserver2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-g8wf-rcg3-qw4q"},{"type":"WEB","url":"https://www.npmjs.com/advisories/371"}],"affected":[{"package":{"name":"tinyserver2","ecosystem":"npm","purl":"pkg:npm/tinyserver2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.5.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-g8wf-rcg3-qw4q/GHSA-g8wf-rcg3-qw4q.json"}}],"schema_version":"1.9.0"}