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://security.snyk.io/vuln/SNYK-JS-STATICSERVER-5722341
https://github.com/nbluis/static-server/blob/master/server.js%23L218-L223
Related Vulnerabilities
CVE-2021-29505 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2022-43441 Vulnerability in npm package sqlite3
CVE-2022-36098 Vulnerability in maven package org.xwiki.platform:xwiki-platform-mentions-ui
CVE-2022-42003 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2023-31890 Vulnerability in maven package com.glazedlists:glazedlists