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.
References
Link | Resource |
---|---|
https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163 | Broken Link |
https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc | Exploit Third Party Advisory |
https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927 | Exploit Third Party Advisory |
https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928 | Exploit Third Party Advisory |
Configurations
Configuration 1 (hide)
|
Information
Published : 2023-03-05 21:15
Updated : 2023-03-10 14:43
NVD link : CVE-2023-26111
Mitre link : CVE-2023-26111
JSON object : View
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Products Affected
node-static_project
- node-static
\@nubosoftware\/node-static_project
- \@nubosoftware\/node-static