nbluis/static-server · Security
static-server Path Traversal vulnerability
- GHSA ID
- GHSA-v834-rhv4-65m3
- CVE ID
- CVE-2023-26152
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26152 ↗
- 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#L218-L223 ↗
- https://github.com/advisories/GHSA-v834-rhv4-65m3 ↗