Description
All versions of the package @nubosoftware/node-static; all versions of the package node-static are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | @nubosoftware/node-static | < * |
| n/a | node-static | < * |
References
- https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bcExploit, Third Party Advisory
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163Broken Link
- https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928Exploit, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927Exploit, Third Party Advisory
- https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bcExploit, Third Party Advisory
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163Broken Link
- https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928Exploit, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927Exploit, Third Party Advisory
Timeline
- Published
- Mar 6, 2023
- Last modified
- Jun 17, 2026
- NVD status
- Modified