high7.5
CVE-2023-26152
static-server Path Traversal vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | static-server | <= 2.2.1 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Nbluis | Static-Server | through 3.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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
- https://github.com/advisories/GHSA-v834-rhv4-65m3
- https://nvd.nist.gov/vuln/detail/CVE-2023-26152
- https://github.com/nbluis/static-server/blob/master/server.js#L218-L223