# CVE-2023-26111: node-static and @nubosoftware/node-static vulnerable to Directory Traversal

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.44%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-03-06T05:00:03.346Z
- Modified: 2026-06-17T05:42:42.057Z
- Also known as: GHSA-5g97-whc9-8g7j
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- @nubosoftware/node-static: before *
- node-static: before *
- node-static (npm): up to 0.7.11
- @nubosoftware/node-static (npm): up to 0.7.11
- @nubosoftware/node-static_project @nubosoftware/node-static: no versions given
- node-static_project node-static: no versions given

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928> (exploit, third-party-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2023-26111](https://www.cve.org/CVERecord?id=CVE-2023-26111), CVE Terms of Use, modified 2025-03-05
- GitHub Advisory Database: [GHSA-5g97-whc9-8g7j](https://github.com/advisories/GHSA-5g97-whc9-8g7j), CC-BY-4.0, modified 2025-09-26
- NVD: [CVE-2023-26111](https://nvd.nist.gov/vuln/detail/CVE-2023-26111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26111 · Whole record: https://cve.day/CVE-2023-26111.json · Rebuilt by cve.day 2026-11-25T22:58:22.280Z
