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.
References (3)
Core 3
Core References
Exploit, Third Party Advisory
https://gist.github.com/lirantal/1f7021703a2065ecaf9ec9e06a3a346d
Exploit, Third Party Advisory
https://security.snyk.io/vuln/SNYK-JS-STATICSERVER-5722341
Scores
CVSS v3
7.5
EPSS
0.0077
EPSS Percentile
73.6%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
nbluis/static-server
< 3.0.0
npm/static-server
0npm
Published
Oct 03, 2023
Tracked Since
Feb 18, 2026