All versions of the package @nubosoftware/node-static; all versions of the package node-static are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927 | third party advisory exploit |
https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928 | third party advisory exploit |
https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc | third party advisory exploit |
https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163 | broken link |