GitHub Advisoryadvisory · npm

GHSA-5g97-whc9-8g7j node-static and @nubosoftware/node-static vulnerable to Directory Traversal

HIGH Published 2023-03-06 Modified 2025-09-26 Official page ↗
Aliases
CVE-2023-26111
Ecosystem
npm
Packages
node-static, @nubosoftware/node-static
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2023-03-07

Affected packages

• npm node-static: <= 0.7.11 (no fix yet) • npm @nubosoftware/node-static: <= 0.7.11 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References