GitHub Advisoryadvisory · npm

GHSA-q2qh-cgc2-qhr3 Directory Traversal in serve

MEDIUM Published 2018-07-27 Modified 2023-04-21 Official page ↗
Aliases
CVE-2018-3712
Ecosystem
npm
Packages
serve
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• npm serve: < 6.4.9 → fixed in 6.4.9

Description

Affected versions of `serve` do not properly handle `%2e` (.) and `%2f` (/) characters, and allow the, characters to be used in paths. This can be used to traverse the directory tree and list 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. Recommendation Update to version 6.4.9 later.

Related

Alias · CVE (1)

  • CVE-2018-3712 serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References