Versions of the package servst before 2.0.3 are vulnerable to Directory Traversal due to improper sanitization of the filePath variable.
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-SERVST-3244896 | third party advisory exploit |
https://gist.github.com/lirantal/691d02d607753d54856f9335f9a1692f | third party advisory exploit |
https://github.com/andrepolischuk/servst/commit/f7cae5d2d7c64c86bc512e1e50614240396ef114 | third party advisory patch |