Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. static-server
  4. ›
  5. CVE-2023-26152

CVE-2023-26152: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

October 3, 2023 (updated November 9, 2023)

All versions of the package static-server is vulnerable to Directory Traversal due to improper input sanitization passed via the validPath function of server.js.

References

  • gist.github.com/lirantal/1f7021703a2065ecaf9ec9e06a3a346d
  • github.com/advisories/GHSA-v834-rhv4-65m3
  • github.com/nbluis/static-server/blob/master/server.js
  • nvd.nist.gov/vuln/detail/CVE-2023-26152
  • security.snyk.io/vuln/SNYK-JS-STATICSERVER-5722341

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.2.1

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/static-server/CVE-2023-26152.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:03 +0000.