Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nubosoftware/node-static
  4. ›
  5. CVE-2023-26111

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

March 6, 2023 (updated September 26, 2025)

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.

References

  • gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc
  • github.com/advisories/GHSA-5g97-whc9-8g7j
  • github.com/cloudhead/node-static
  • github.com/cloudhead/node-static/blob/master/lib/node-static.js
  • nvd.nist.gov/vuln/detail/CVE-2023-26111
  • security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928
  • security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927

Code Behaviors & Features

Detect and mitigate CVE-2023-26111 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.7.11

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@nubosoftware/node-static/CVE-2023-26111.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:10 +0000.