CVE-2025-58751

published 8 Sep 2025 · updated 9 Sep 2025

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

3.3LowCVSS 2.3EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
vitejs<5.4.20, >=6.0.0 <6.3.6, >=7.0.0 <7.0.7, >=7.1.0 <7.1.5

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-58751 severity on Zeptric[![CVE-2025-58751](https://zeptric.io/badge/cve/CVE-2025-58751.svg)](https://zeptric.io/cve/CVE-2025-58751)