#VU125308 Path traversal in Vite - CVE-2025-58751

 

#VU125308 Path traversal in Vite - CVE-2025-58751

Published: April 8, 2026


Vulnerability identifier: #VU125308
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-58751
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Vite
Software vendor:
Vite

Description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to path traversal in servePublicMiddleware / viteServePublicMiddleware when handling crafted path requests to public files. A remote attacker can send a specially crafted request using traversal sequences to disclose sensitive information.

Only applications that expose the Vite dev server to the network, use the public directory feature, and have a symbolic link anywhere inside the public directory are affected. User interaction is required.


Remediation

Install security update from vendor's website.

External links