CVE-2023-26111
Node-static Project \@nubosoftware\/node-static vulnerability
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.
Affected products
\@nubosoftware\/node-static, Node-static. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Node-static Project \@nubosoftware\/node-static runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc · Exploit
- security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928 · Exploit
- security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927 · Exploit
- github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163
- nvd.nist.gov/vuln/detail/CVE-2023-26111
- github.com/cloudhead/node-static/blob/master/lib/node-static.js#23L160-L163
- github.com/advisories/GHSA-5g97-whc9-8g7j
- nvd.nist.gov/vuln/detail/CVE-2023-26111
- cve.org/CVERecord?id=CVE-2023-26111
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.