Description
All versions of the package static-server are vulnerable to Directory Traversal due to improper input sanitization passed via the validPath function of server.js.
Remediation
References
https://gist.github.com/lirantal/1f7021703a2065ecaf9ec9e06a3a346d
https://github.com/nbluis/static-server/blob/master/server.js%23L218-L223
https://security.snyk.io/vuln/SNYK-JS-STATICSERVER-5722341
Related Vulnerabilities
CVE-2023-26139 Vulnerability in npm package underscore-keypath
CVE-2023-48967 Vulnerability in maven package org.noear:solon.serialization.fury
CVE-2020-11057 Vulnerability in maven package org.xwiki.platform:xwiki-platform-dashboard-macro
CVE-2011-4969 Vulnerability in maven package org.wicketstuff:jquery