Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2025-32395: Arbitrary File Read in Vite Dev Server via server.fs.deny Bypass

Published Apr 10, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.0Medium · v4
EPSS1.8%79th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2025-32395CWE-22

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.