{"id":"GHSA-g8m7-qhv7-9h5x","aliases":["GHSA-g8m7-qhv7-9h5x"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in serve-here.js","summary":"Versions of `serve-here.js` prior to 1.2.0 are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the served folder using relative paths.\n\n\n## Recommendation\n\nUpgrade to version 1.2.0 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `serve-here.js` prior to 1.2.0 are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the served folder using relative paths.\n\n\n## Recommendation\n\nUpgrade to version 1.2.0 or later.","format":"markdown","source":"ghsa"}],"published":"2019-07-05T21:07:14.000Z","modified":"2021-09-22T18:35:22.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.2.0"}],"ecosystem":"npm","package":"serve-here","purl":"pkg:npm/serve-here","source":"ghsa"}],"references":[{"url":"https://github.com/vivaxy/here/pull/17","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/296254","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/569966","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/554","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g8m7-qhv7-9h5x","url":"https://github.com/advisories/GHSA-g8m7-qhv7-9h5x","licence":"CC-BY-4.0","modified":"2021-09-22T18:35:22.000Z"}],"updatedAt":"2026-11-25T22:56:45.399Z"}