Live threats

All CVEs / Vitejs

CVE-2025-58751Vitejs Vite

Low 2.3 No auth needed

Priority
29
CVSS 4.0
2.3
EPSS
—
Auth required
No
Published
Sep 8, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-200, CWE-284
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Vite.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vite ≥ 7.1.0 < 7.1.5 7.1.5 npm install vite@7.1.5
npm vite ≥ 7.0.0 < 7.0.7 7.0.7 npm install vite@7.0.7
npm vite ≥ 6.0.0 < 6.3.6 6.3.6 npm install vite@6.3.6
npm vite < 5.4.20 5.4.20 npm install vite@5.4.20

Per OSV / GitHub Advisories (GHSA-g4jq-h2w9-997c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vitejsvite< 5.4.20
vitejsvite≥ 6.0.0 < 6.3.6
vitejsvite≥ 7.0.0 < 7.0.7
vitejsvite≥ 7.1.0 < 7.1.5

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.