Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @vivaxy/here
  4. ›
  5. GMS-2020-39

GMS-2020-39: Directory Traversal in @vivaxy/here

September 1, 2020 (updated September 23, 2021)

The @vivaxy/here module is a small web server that serves files with the process’ working directory acting as the web root.

It is vulnerable to a directory traversal attack.

This means that files on the local file system which exist outside of the web root may be disclosed to an attacker. This might include confidential files.

Mitigating Factors: If the node process is run as a user with very limited filesystem permissions, there is significantly less risk of exposing confidential/private information. Proof of Concept:

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

Run `npm i @vivaxy/here` to install the latest version that addresses this vulnerability.

References

  • github.com/advisories/GHSA-m4vv-p6fq-jhqp
  • github.com/vivaxy/here/commit/298dbab41344dfb7f95f66b1fa7b5cfb436bd4a2
  • hackerone.com/reports/296254
  • www.npmjs.com/advisories/557

Code Behaviors & Features

Detect and mitigate GMS-2020-39 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.2.1

Fixed versions

  • 3.2.2

Solution

Upgrade to version 3.2.2 or above.

Source file

npm/@vivaxy/here/GMS-2020-39.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.