CVE-2023-26152
JavaScript vulnerability analysis and mitigation

Overview

CVE-2023-26152 is a Directory Traversal vulnerability affecting all versions of the static-server package. The vulnerability exists due to improper input sanitization in the validPath function of server.js. The vulnerability was discovered in February 2023 and publicly disclosed in June 2023, affecting the static-server package which serves as a local HTTP file server for static resource files (Snyk Advisory, GitHub POC).

Technical details

The vulnerability stems from a flawed implementation of path validation in the static-server package. The issue occurs in the validPath function where the code attempts to jail requests to a specific root directory. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The CVSS v3.1 base score is 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility, low attack complexity, and no required privileges or user interaction (Snyk Advisory).

Impact

The vulnerability allows attackers to access files and directories stored outside the intended folder through directory traversal techniques. This can lead to unauthorized access to sensitive files and potential information disclosure. The package has significant usage with reported 40,055 weekly downloads at the time of the advisory (GitHub POC).

Mitigation and workarounds

There is currently no fixed version available for the static-server package. The source code repository on GitHub is archived and the package was last published 5 years ago (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management