Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. serve
  4. ›
  5. CVE-2018-3712

CVE-2018-3712: Directory Traversal

June 6, 2018 (updated October 9, 2019)

serve does not properly handle %2e (.) and %2f (/) and allows these characters to be used in paths, which can be used to traverse the directory tree up and lists content of any directory the user running the process has access to. Mitigating factors: This vulnerability only allows listing of directory contents and does not allow reading of arbitrary files.

References

  • hackerone.com/reports/307666

Code Behaviors & Features

Detect and mitigate CVE-2018-3712 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 6.4.8

Fixed versions

  • 6.4.9

Solution

Upgrade to version 6.4.9 or above.

Impact 6.5 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/serve/CVE-2018-3712.yml

Spotted a mistake? Edit the file on GitLab.

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

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