GitHub Advisoryadvisory · npm
GHSA-5w8q-x7hc-jhp6 Directory Traversal in node-simple-router
HIGH
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
- https://nvd.nist.gov/vuln/detail/CVE-2017-16083 advisory
- https://github.com/sandy98/node-simple-router/commit/dfdd52e2e80607af433097d940b3834fd96df488 web
- https://github.com/JacksonGL/NPM-Vuln-PoC/tree/master/directory-traversal/node-simple-router web
- https://github.com/advisories/GHSA-5w8q-x7hc-jhp6 advisory
- https://www.npmjs.com/advisories/352 web