GitHub Advisoryadvisory · npm
GHSA-v834-rhv4-65m3 static-server Path Traversal vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2023-26152
- Ecosystem
- npm
- Packages
- static-server
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2023-10-04
Affected packages
• npm static-server: <= 2.2.1 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2023-26152 All versions of the package static-server are vulnerable to Directory Traversal due to improper input sanitization passed via the validPath… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26152 advisory
- https://gist.github.com/lirantal/1f7021703a2065ecaf9ec9e06a3a346d web
- https://github.com/nbluis/static-server package
- https://github.com/nbluis/static-server/blob/master/server.js#L218-L223 web
- https://security.snyk.io/vuln/SNYK-JS-STATICSERVER-5722341 web