Severity: high

Directory Traversal



Affected versions of serve-here 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.

Proof of Concept:

curl "http://${SERVER_IP}:${SERVER_PORT}/..%2f..%2fetc/passwd"


The serve-here package has been deprecated by the author and replaced by @vivaxy/here

To install the replacement package:

npm i @vivaxy/here

Have content suggestions? Send them to [email protected]

Advisory timeline

  1. published

    Advisory published
    Jan 12th, 2018
  2. reported

    Initial report by Yasin Soliman
    Jan 11th, 2018