CVE-2025-58752

Vite's `server.fs` settings were not applied to HTML files

MEDIUM
5.3
CVSS Score
Published: September 8, 2025 at 10:56 PM UTC
Updated: September 30, 2026 at 11:10 PM UTC
1 product affected across 1 vendorVite

Using vite by vitejs?

Get instant alerts when new vulnerabilities affect vite - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.6%
SSVC
PoC

Description

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps 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'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.20v < 6.3.6v < 7.0.7v < 7.1.56.0.0 ≤ v < 6.3.67.0.0 ≤ v < 7.0.77.1.0 ≤ v < 7.1.5
Affected range stops below 5.4.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.3.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.0.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.1.5, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-23CWE-200CWE-284

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card