CVE-2025-58752
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-58752 affects Vite, a frontend tooling framework for JavaScript. The vulnerability was discovered on September 8, 2025, and affects versions prior to 7.1.5, 7.0.7, 6.3.6, and 5.4.20. The issue allows any HTML files on the machine to be served regardless of the server.fs settings, potentially exposing sensitive information (GitHub Advisory).

Technical details

The vulnerability stems from improper access control in the server's middleware chain. When handling HTML files, the server bypasses the normal file system restrictions by skipping security checks in the htmlFallbackMiddleware and indexHtmlMiddleware. This affects applications that explicitly expose the Vite dev server to the network using --host or server.host config option and use appType: 'spa' (default) or appType: 'mpa'. The vulnerability has a CVSS v4.0 Base Score of 2.3 (Low) with vector string CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N (NVD).

Impact

The vulnerability allows unauthorized access to HTML files outside the intended directory structure, potentially exposing sensitive information. The preview server is also affected, allowing access to HTML files not under the output directory. This could lead to information disclosure if sensitive HTML files are present on the system (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to the patched versions: 7.1.5, 7.0.7, 6.3.6, or 5.4.20. Until the upgrade is possible, it is recommended to avoid exposing the dev or preview server to untrusted networks, disable or restrict HTML fallback handlers if possible, and carefully review server.fs.allow / server.fs.deny settings to minimize exposure (GitHub 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-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • tar
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

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