ADVISORIES

GitHub Advisory Database

GHSA-5w8q-x7hc-jhp6

Directory Traversal in node-simple-router

Details

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:

GET /../../../../../../../../../../etc/passwd HTTP/1.1
host:foo

Recommendation

Update to v0.10.1 or later.

Affected packages

EcosystemPackageAffected versions
npmnode-simple-router
All versions before 0.10.1 (fixed in 0.10.1)

References