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-2022-36944 Vulnerability in maven package org.scala-lang:scala-library
CVE-2020-28480 Vulnerability in maven package org.webjars.npm:jointjs
CVE-2023-38889 Vulnerability in maven package org.alluxio:alluxio-parent
CVE-2023-49620 Vulnerability in maven package org.apache.dolphinscheduler:dolphinscheduler-dao
CVE-2022-29546 Vulnerability in maven package net.sourceforge.nekohtml:nekohtml