CVE-2025-58751

MEDIUM
Published Sep 8, 2025 Modified Sep 17, 2025 CWE-22 CWE-200 CWE-284

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.

Is your site exposed to CVE-2025-58751?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Weakness Type (CWE)

CWE-22 Path Traversal
CWE-200 CWE-200
CWE-284 CWE-284

Affected Products

Vendor Product
vitejs vite
vitejs vite
vitejs vite
vitejs vite

References

Frequently Asked Questions

What is CVE-2025-58751? +
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. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2025-58751? +
CVE-2025-58751 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-58751? +
CVE-2025-58751 affects products from vitejs, specifically: vite. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-58751? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-58751 — free, no signup required.