# GHSA-g8m7-qhv7-9h5x: Path Traversal in serve-here.js

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-07-05T21:07:14.000Z
- Modified: 2021-09-22T18:35:22.000Z
- Weaknesses: CWE-22

## Description

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.


## Recommendation

Upgrade to version 1.2.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- serve-here (npm): up to 3.2.0

## References

- <https://github.com/vivaxy/here/pull/17> (web)
- <https://github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2> (web)
- <https://hackerone.com/reports/296254> (web)
- <https://hackerone.com/reports/569966> (web)
- <https://www.npmjs.com/advisories/554> (web)

## Sources

- GitHub Advisory Database: [GHSA-g8m7-qhv7-9h5x](https://github.com/advisories/GHSA-g8m7-qhv7-9h5x), CC-BY-4.0, modified 2021-09-22

---

Page: https://cve.day/GHSA-g8m7-qhv7-9h5x · Whole record: https://cve.day/GHSA-g8m7-qhv7-9h5x.json · Rebuilt by cve.day 2026-11-25T22:56:45.399Z
