GitHub Advisoryadvisory · npm

GHSA-5w8q-x7hc-jhp6 Directory Traversal in node-simple-router

HIGH Published 2018-07-24 Modified 2023-09-11 Official page ↗
Aliases
CVE-2017-16083
Ecosystem
npm
Packages
node-simple-router
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• npm node-simple-router: < 0.10.1 → fixed in 0.10.1

Description

Affected versions of `node-simple-router` 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. Example request: ```http GET /../../../../../../../../../../etc/passwd HTTP/1.1 host:foo ``` Recommendation Update to v0.10.1 or later.

Related

Alias · CVE (1)

  • CVE-2017-16083 node-simple-router is a minimalistic router for Node. vulnerability

Weakness · CWE (1)

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

References