CVE-2025-32395: Arbitrary File Read in Vite Dev Server via server.fs.deny Bypass
CVE-2025-32395 is an arbitrary file read vulnerability in the Vite development server affecting versions prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13. When Vite is run on Node or Bun, malformed HTTP requests containing a '#' character in the request-target may be passed to userland instead of being rejected. Vite assumed req.url would not contain '#', and this assumption caused its server.fs.deny protection to be bypassed. An attacker can leverage this behavior, including with the @fs path handling and a URL-encoded hash character (%23), to cause the dev server to return the contents of arbitrary files to the browser. The issue does not affect Deno in the described scenario.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthorized reading of arbitrary files accessible to the Vite dev server process. This can expose source code, configuration files, environment files, credentials, API keys, tokens, SSH material, and other sensitive local files, depending on filesystem permissions and project layout. The vulnerability is an information disclosure issue rather than direct code execution, but the disclosed data may enable follow-on compromise.
Mitigation
If you can’t patch tonight, do this now.
Do not expose the Vite dev server to untrusted networks. Avoid using --host or the server.host configuration option unless strictly necessary. Restrict access to localhost, trusted users, or segmented/internal networks only. Where exposure cannot be avoided immediately, place the dev server behind network ACLs, VPN-only access, or equivalent access controls until patched versions are deployed.
Remediation
Patch, then assume compromise.
Upgrade Vite to a fixed release in the relevant branch: 6.2.6, 6.1.5, 6.0.15, 5.4.18, or 4.5.13 or later. Ensure the patched version is deployed anywhere the Vite dev server may be reachable over the network. Validate that server.fs.deny protections behave as expected after upgrade.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Frequently asked questions
- Is CVE-2025-32395 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-32395 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-32395?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-32395.
- Is there a patch for CVE-2025-32395?
- Upgrade Vite to a fixed release in the relevant branch: 6.2.6, 6.1.5, 6.0.15, 5.4.18, or 4.5.13 or later. Ensure the patched version is deployed anywhere the Vite dev server may be reachable over the network.
- How severe is CVE-2025-32395?
- CVE-2025-32395 has a CVSS v4 score of 6.0 (Medium) and an EPSS score of 1.8% (79th percentile) as of Sep 25, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.