CVE-2023-26111
HIGH 7.5CVSS 3.1node-static and @nubosoftware/node-static vulnerable to Directory Traversal
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.
- Published
- 6 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-5g97-whc9-8g7j
- Sources
- NVDJSONOSV GHSA-5g97-whc9-8g7jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | @nubosoftware/node-static_project | @nubosoftware/node-staticcpe:2.3:a:\@nubosoftware\/node-static_project:\@nubosoftware\/node-static:-:*:*:*:*:node.js:*:* |
(no version) | |
| NVD | node-static_project | node-staticcpe:2.3:a:node-static_project:node-static:-:*:*:*:*:node.js:*:* |
(no version) | |
| OSV | npm | node-static | <= 0.7.11 | |
| OSV | npm | @nubosoftware/node-static | <= 0.7.11 |
References
- https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc · Exploit, Third Party Advisory, WEB
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163 · Broken Link
- https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928 · Exploit, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26111 · ADVISORY
- https://github.com/cloudhead/node-static · PACKAGE
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js#23L160-L163 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 6 Mar 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Mar 2023)