GitHub Advisoryadvisory · npm
GHSA-5g97-whc9-8g7j node-static and @nubosoftware/node-static vulnerable to Directory Traversal
HIGH
Official page ↗
- Aliases
- CVE-2023-26111
- Ecosystem
- npm
- Packages
- node-static, @nubosoftware/node-static
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2023-03-07
Affected packages
• npm node-static: <= 0.7.11 (no fix yet)
• npm @nubosoftware/node-static: <= 0.7.11 (no fix yet)
Description
node-static and its fork, @nubosoftware/node-static, are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.
Related
Alias · CVE (1)
- CVE-2023-26111 All versions of the package @nubosoftware/node-static; all versions of the package node-static are vulnerable to Directory Traversal due to… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26111 advisory
- https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc web
- https://github.com/cloudhead/node-static package
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js#23L160-L163 web
- https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928 web
- https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927 web