# CVE-2025-32395: Vite has an \`server.fs.deny\` bypass with an invalid \`request-target\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.75% (percentile 78, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-356w-63v5-8wf4
- **Published:** 2025-04-10T13:25:19.177Z
- **Modified:** 2026-09-10T03:50:56.951Z

## Who should check

- Projects that depend on npm package vite (\>= 6.2.0, \< 6.2.6)
- Anyone running vitejs vite \>= 6.2.0, \< 6.2.6; \>= 6.1.0, \< 6.1.5; \>= 6.0.0, \< 6.0.15; \>= 5.0.0, \< 5.4.18; \< 4.5.13

## Description

Vite is a frontend tooling framework for javascript. Prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13, the contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun. HTTP 1.1 spec (RFC 9112) does not allow \# in request-target. Although an attacker can send such a request. For those requests with an invalid request-line (it includes request-target), the spec recommends to reject them with 400 or 301. The same can be said for HTTP 2. On Node and Bun, those requests are not rejected internally and is passed to the user land. For those requests, the value of http.IncomingMessage.url contains \#. Vite assumed req.url won't contain \# when checking server.fs.deny, allowing those kinds of requests to bypass the check. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) and running the Vite dev server on runtimes that are not Deno (e.g. Node, Bun) are affected. This vulnerability is fixed in 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13.

## Affected and fixed versions

- npm `vite`: affected \>= 6.2.0, \< 6.2.6; fixed 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13 (osv)
- vitejs vite: \>= 6.2.0, \< 6.2.6; \>= 6.1.0, \< 6.1.5; \>= 6.0.0, \< 6.0.15; \>= 5.0.0, \< 5.4.18; \< 4.5.13 (cvelist)

## Mitigation

- Upgrade vite to one of 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-32395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-32395.md
Affected: vite >= 6.2.0, < 6.2.6
Fixed in: 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13

Steps:
1. Search this machine and project for vite (npm), vitejs vite: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-32395 being exploited?

There is no confirmed exploitation: CVE-2025-32395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.75% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-32395?

Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-32395?

vite \>= 6.2.0, \< 6.2.6.

### Is there a fix for CVE-2025-32395?

Yes. Fixed in 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13. Upgrade vite to one of 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-32395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/vitejs/vite/security/advisories/GHSA-356w-63v5-8wf4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-32395>
- patch: <https://github.com/vitejs/vite/commit/175a83909f02d3b554452a7bd02b9f340cdfef70>
- other: <https://github.com/vitejs/vite>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-32395>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-356w-63v5-8wf4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-32395> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-32395>
