CVE-2025-58751

Vite middleware may serve files starting with the same name with the public directory

MEDIUM
5.3
CVSS Score
Published: September 8, 2025 at 10:52 PM UTC
Updated: June 17, 2026 at 09:44 AM 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 1%
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, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. 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-22CWE-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