Improper access control in Vite - CVE-2025-32395

 

Improper access control in Vite - CVE-2025-32395

Published: April 10, 2025 / Updated: May 22, 2026


Vulnerability identifier: #VU125307
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-32395
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper access control in the server.fs.deny check when handling an invalid request-target containing a # character. A remote attacker can send a specially crafted request to disclose sensitive information.

Only instances that explicitly expose the dev server to the network and run on Node or Bun are vulnerable. User interaction is required.


Affected software

Vite

How to mitigate CVE-2025-32395

Install security update from vendor's website.

Vite - addressed in versions 4.5.13, 5.0.0, 5.4.18, 6.0.0, 6.0.15, 6.1.0, 6.1.5, 6.2.0, 6.2.6

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins